function HelpSectionManager::clearCachedDefinitions
Overrides DefaultPluginManager::clearCachedDefinitions
File
- 
              core/
modules/ help/ src/ HelpSectionManager.php, line 59  
Class
- HelpSectionManager
 - Manages help page section plugins.
 
Namespace
Drupal\helpCode
public function clearCachedDefinitions() {
  parent::clearCachedDefinitions();
  $version = \Drupal::service('update.update_hook_registry')->getInstalledVersion('help');
  if ($this->searchManager && $version >= 10200) {
    // Rebuild the index on cache clear so that new help topics are indexed
    // and any changes due to help topics edits or translation changes are
    // picked up.
    $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.