function SearchHelpHooks::rebuild

Same name and namespace in other branches
  1. main core/modules/search/modules/search_help/src/Hook/SearchHelpHooks.php \Drupal\search_help\Hook\SearchHelpHooks::rebuild()

Implements hook_rebuild().

Attributes

#[Hook('rebuild')]

File

core/modules/search/modules/search_help/src/Hook/SearchHelpHooks.php, line 55

Class

SearchHelpHooks
Hook implementations for help.

Namespace

Drupal\search_help\Hook

Code

public function rebuild() : void {
  if ($this->searchManager
    ->hasDefinition('help_search')) {
    $help_search = $this->searchManager
      ->createInstance('help_search');
    $help_search->markForReindex();
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.