node_reindex_node_search

node_reindex_node_search($nid) Marks a node to be re-indexed by the node_search plugin. Parameters int $nid: The node ID. File core/modules/node/node.module, line 1327 The core module that allows content to be submitted to the site. Code function node_reindex_node_search($nid) { if (\Drupal::moduleHandler()->moduleExists('search')) { // Reindex node context indexed by the node module search plugin. search_mark_for_reindex('node_search', $nid); } }

node_ranking

node_ranking() Implements hook_ranking(). File core/modules/node/node.module, line 645 The core module that allows content to be submitted to the site. Code function node_ranking() { // Create the ranking array and add the basic ranking options. $ranking = array( 'relevance' => array( 'title' => t('Keyword relevance'), // Average relevance values hover around 0.15 'score' => 'i.relevance', ), 'sticky' => array( 'title' => t('Content is st

node_query_node_access_alter

node_query_node_access_alter(AlterableInterface $query) Implements hook_query_TAG_alter(). This is the hook_query_alter() for queries tagged with 'node_access'. It adds node access checks for the user account given by the 'account' meta-data (or current user if not provided), for an operation given by the 'op' meta-data (or 'view' if not provided; other possible values are 'update' and 'delete'). Queries tagged with 'node_access' that are not against the {node} table must add the base table as

NODE_PUBLISHED

Denotes that the node is published. File core/modules/node/node.module, line 40 The core module that allows content to be submitted to the site. Code const NODE_PUBLISHED = 1;

NODE_PROMOTED

Denotes that the node is promoted to the front page. File core/modules/node/node.module, line 50 The core module that allows content to be submitted to the site. Code const NODE_PROMOTED = 1;

node_preprocess_html

node_preprocess_html(&$variables) Implements hook_preprocess_HOOK() for HTML document templates. File core/modules/node/node.module, line 519 The core module that allows content to be submitted to the site. Code function node_preprocess_html(&$variables) { // If on an individual node page, add the node type to body classes. if (($node = \Drupal::routeMatch()->getParameter('node')) && $node instanceof NodeInterface) { $variables['node_type'] = $node->getType();

node_preprocess_block

node_preprocess_block(&$variables) Implements hook_preprocess_HOOK() for block templates. File core/modules/node/node.module, line 529 The core module that allows content to be submitted to the site. Code function node_preprocess_block(&$variables) { if ($variables['configuration']['provider'] == 'node') { switch ($variables['elements']['#plugin_id']) { case 'node_syndicate_block': $variables['attributes']['role'] = 'complementary'; break; } } }

node_page_top

node_page_top(array &$page) Implements hook_page_top(). File core/modules/node/node.module, line 805 The core module that allows content to be submitted to the site. Code function node_page_top(array &$page) { // Add 'Back to content editing' link on preview page. $route_match = \Drupal::routeMatch(); if ($route_match->getRouteName() == 'entity.node.preview') { $page['page_top']['node_preview'] = array( '#type' => 'container', '#attributes' => array(

NODE_NOT_STICKY

Denotes that the node is not sticky at the top of the page. File core/modules/node/node.module, line 55 The core module that allows content to be submitted to the site. Code const NODE_NOT_STICKY = 0;

NODE_NOT_PUBLISHED

Denotes that the node is not published. File core/modules/node/node.module, line 35 The core module that allows content to be submitted to the site. Code const NODE_NOT_PUBLISHED = 0;