function BlockContentHooks::theme

Implements hook_theme().

Attributes

#[Hook('theme')]

File

core/modules/block_content/src/Hook/BlockContentHooks.php, line 57

Class

BlockContentHooks
Hook implementations for block_content.

Namespace

Drupal\block_content\Hook

Code

public function theme($existing, $type, $theme, $path) : array {
  return [
    'block_content_add_list' => [
      'variables' => [
        'content' => NULL,
      ],
      'file' => 'block_content.pages.inc',
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.