function SearchHelpSearch::__construct
Same name and namespace in other branches
- 11.x core/modules/search/modules/search_help/src/Plugin/Search/SearchHelpSearch.php \Drupal\search_help\Plugin\Search\SearchHelpSearch::__construct()
Constructs a \Drupal\Component\Plugin\PluginBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides PluginBase::__construct
File
-
core/
modules/ search/ modules/ search_help/ src/ Plugin/ Search/ SearchHelpSearch.php, line 71
Class
- SearchHelpSearch
- Handles searching for help using the Search module index.
Namespace
Drupal\search_help\Plugin\SearchCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, protected Connection $database, protected Config $searchSettings, protected LanguageManagerInterface $languageManager, MessengerInterface $messenger, protected AccountInterface $account, protected StateInterface $state, protected HelpSectionManager $helpSectionManager, protected SearchIndexInterface $searchIndex) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->messenger = $messenger;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.