function BlockHooks::theme
Same name and namespace in other branches
- 11.x core/modules/block/src/Hook/BlockHooks.php \Drupal\block\Hook\BlockHooks::theme()
Implements hook_theme().
Attributes
#[Hook('theme')]
File
-
core/
modules/ block/ src/ Hook/ BlockHooks.php, line 65
Class
- BlockHooks
- Hook implementations for block.
Namespace
Drupal\block\HookCode
public function theme() : array {
return [
'block' => [
'render element' => 'elements',
'initial preprocess' => static::class . ':preprocessBlock',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.