You are here

public function FacetSourcePluginBase::__construct in Facets 8

Constructs a FacetSourcePluginBase 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.

\Drupal\facets\QueryType\QueryTypePluginManager $query_type_plugin_manager: The query type plugin manager.

Overrides PluginBase::__construct

2 calls to FacetSourcePluginBase::__construct()
SearchApiBaseFacetSource::__construct in src/Plugin/facets/facet_source/SearchApiBaseFacetSource.php
Constructs a SearchApiBaseFacetSource object.
SearchApiDisplay::__construct in src/Plugin/facets/facet_source/SearchApiDisplay.php
Constructs a SearchApiBaseFacetSource object.
2 methods override FacetSourcePluginBase::__construct()
SearchApiBaseFacetSource::__construct in src/Plugin/facets/facet_source/SearchApiBaseFacetSource.php
Constructs a SearchApiBaseFacetSource object.
SearchApiDisplay::__construct in src/Plugin/facets/facet_source/SearchApiDisplay.php
Constructs a SearchApiBaseFacetSource object.

File

src/FacetSource/FacetSourcePluginBase.php, line 61

Class

FacetSourcePluginBase
Defines a base class from which other facet sources may extend.

Namespace

Drupal\facets\FacetSource

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, QueryTypePluginManager $query_type_plugin_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->queryTypePluginManager = $query_type_plugin_manager;
  if (isset($configuration['facet'])) {
    $this->facet = $configuration['facet'];
  }
}