function node_theme

Same name in other branches
  1. 7.x modules/node/node.module \node_theme()
  2. 9 core/modules/node/node.module \node_theme()
  3. 10 core/modules/node/node.module \node_theme()

Implements hook_theme().

File

core/modules/node/node.module, line 166

Code

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