public function SearchApiPluginManager::__construct in Search API 8
Constructs a new class instance.
Parameters
string|bool $subdir: The plugin's subdirectory, for example Plugin/views/filter.
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher: The event dispatcher.
string|null $plugin_interface: (optional) The interface each plugin should implement.
string $plugin_definition_annotation_name: (optional) The name of the annotation that contains the plugin definition. Defaults to 'Drupal\Component\Annotation\Plugin'.
string[] $additional_annotation_namespaces: (optional) Additional namespaces to scan for annotation definitions.
Overrides DefaultPluginManager::__construct
7 calls to SearchApiPluginManager::__construct()
- BackendPluginManager::__construct in src/
Backend/ BackendPluginManager.php - Constructs a BackendPluginManager object.
- DatasourcePluginManager::__construct in src/
Datasource/ DatasourcePluginManager.php - Constructs a DatasourcePluginManager object.
- DataTypePluginManager::__construct in src/
DataType/ DataTypePluginManager.php - Constructs a DataTypePluginManager object.
- DisplayPluginManager::__construct in src/
Display/ DisplayPluginManager.php - Constructs a new class instance.
- ParseModePluginManager::__construct in src/
ParseMode/ ParseModePluginManager.php - Constructs a ParseModePluginManager object.
7 methods override SearchApiPluginManager::__construct()
- BackendPluginManager::__construct in src/
Backend/ BackendPluginManager.php - Constructs a BackendPluginManager object.
- DatasourcePluginManager::__construct in src/
Datasource/ DatasourcePluginManager.php - Constructs a DatasourcePluginManager object.
- DataTypePluginManager::__construct in src/
DataType/ DataTypePluginManager.php - Constructs a DataTypePluginManager object.
- DisplayPluginManager::__construct in src/
Display/ DisplayPluginManager.php - Constructs a new class instance.
- ParseModePluginManager::__construct in src/
ParseMode/ ParseModePluginManager.php - Constructs a ParseModePluginManager object.
File
- src/
SearchApiPluginManager.php, line 49
Class
- SearchApiPluginManager
- Extends the default plugin manager to add support for alter events.
Namespace
Drupal\search_apiCode
public function __construct($subdir, \Traversable $namespaces, ModuleHandlerInterface $module_handler, EventDispatcherInterface $eventDispatcher, $plugin_interface = NULL, $plugin_definition_annotation_name = 'Drupal\\Component\\Annotation\\Plugin', array $additional_annotation_namespaces = []) {
parent::__construct($subdir, $namespaces, $module_handler, $plugin_interface, $plugin_definition_annotation_name, $additional_annotation_namespaces);
$this->eventDispatcher = $eventDispatcher;
}