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);
  }
}
doc_Drupal
2016-10-29 09:31:58
Comments
Leave a Comment

Please login to continue.