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
1 2 3 4 5 6 | 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 ); } } |
Please login to continue.