Same name and namespace in other branches
  1. 6.x modules/node/node.module \node_theme()
  2. 7.x modules/node/node.module \node_theme()
  3. 8.9.x core/modules/node/node.module \node_theme()
  4. 9 core/modules/node/node.module \node_theme()

Implements hook_theme().

File

core/modules/node/node.module, line 108
The core module that allows content to be submitted to the site.

Code

function node_theme() {
  return [
    'node' => [
      'render element' => 'elements',
    ],
    'node_add_list' => [
      'variables' => [
        'content' => NULL,
      ],
    ],
    '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',
    ],
  ];
}