function BlockHooks::theme

Same name and namespace in other branches
  1. 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\Hook

Code

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.