public function AdvancedHelpSearch::__construct in Advanced Help 8
Creates a UserSearch object.
Parameters
\Drupal\Core\Database\Connection $database: The database connection.
\Drupal\advanced_help\AdvancedHelpManager $advanced_help: The advanced Help manager.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
array $configuration:
\Drupal\Core\Config\Config $search_settings:
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides PluginBase::__construct
File
- src/
Plugin/ Search/ AdvancedHelpSearch.php, line 98
Class
- AdvancedHelpSearch
- Executes a keyword search for Advanced Help against the {advanced_help} topic pages.
Namespace
Drupal\advanced_help\Plugin\SearchCode
public function __construct(Connection $database, AdvancedHelpManager $advanced_help, AccountInterface $current_user, Config $search_settings, array $configuration, $plugin_id, $plugin_definition) {
$this->database = $database;
$this->advancedHelp = $advanced_help;
$this->currentUser = $current_user;
$this->searchSettings = $search_settings;
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this
->addCacheTags([
'user_list',
]);
}