function HelpSectionManager::setSearchManager

Same name in other branches
  1. 9 core/modules/help_topics/src/HelpSectionManager.php \Drupal\help_topics\HelpSectionManager::setSearchManager()
  2. 8.9.x core/modules/help_topics/src/HelpSectionManager.php \Drupal\help_topics\HelpSectionManager::setSearchManager()
  3. 11.x core/modules/help/src/HelpSectionManager.php \Drupal\help\HelpSectionManager::setSearchManager()

Sets the search manager.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface|null $search_manager: The search manager if the Search module is installed.

File

core/modules/help/src/HelpSectionManager.php, line 52

Class

HelpSectionManager
Manages help page section plugins.

Namespace

Drupal\help

Code

public function setSearchManager(?PluginManagerInterface $search_manager = NULL) {
    $this->searchManager = $search_manager;
}

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