function NodeThemeHooks::theme
Implements hook_theme().
Attributes
#[Hook('theme')]
File
-
core/
modules/ node/ src/ Hook/ NodeThemeHooks.php, line 33
Class
- NodeThemeHooks
- Hook implementations for the node module.
Namespace
Drupal\node\HookCode
public function theme() : array {
return [
'node' => [
'render element' => 'elements',
'initial preprocess' => static::class . ':preprocessNode',
],
'node_add_list' => [
'variables' => [
'content' => NULL,
],
'initial preprocess' => static::class . ':preprocessNodeAddList',
],
'node_edit_form' => [
'render element' => 'form',
],
// @todo Delete the next three entries as part of
// https://www.drupal.org/node/3015623
'field__node__title' => [
'base hook' => 'field',
],
'field__node__uid' => [
'base hook' => 'field',
],
'field__node__created' => [
'base hook' => 'field',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.