Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NodeHooks1.php

function NodeHooks1::theme

Implements hook_theme().

File

core/modules/node/src/Hook/NodeHooks1.php, line 112

Class

NodeHooks1
Hook implementations for node.

Namespace

Drupal\node\Hook

Code

public function theme() : array {
    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',
        ],
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal