public function HelpSectionManager::setSearchManager in Drupal 10
Same name and namespace in other branches
- 8 core/modules/help_topics/src/HelpSectionManager.php \Drupal\help_topics\HelpSectionManager::setSearchManager()
- 9 core/modules/help_topics/src/HelpSectionManager.php \Drupal\help_topics\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_topics/ src/ HelpSectionManager.php, line 31
Class
- HelpSectionManager
- Decorates the Help Section plugin manager to provide help topic search.
Namespace
Drupal\help_topicsCode
public function setSearchManager(PluginManagerInterface $search_manager = NULL) {
$this->searchManager = $search_manager;
}