W3cubDocs

/Drupal 8

function node_theme

node_theme()

Implements hook_theme().

File

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

Code

function node_theme() {
  return array(
    'node' => array(
      'render element' => 'elements',
    ),
    'node_add_list' => array(
      'variables' => array('content' => NULL),
    ),
    'node_edit_form' => array(
      'render element' => 'form',
    ),
    'field__node__title' => array(
      'base hook' => 'field',
    ),
    'field__node__uid' => array(
      'base hook' => 'field',
    ),
    'field__node__created' => array(
      'base hook' => 'field',
    ),
  );
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!node!node.module/function/node_theme/8.1.x