public function SearchApiDisplay::__construct in Facets 8
Constructs a SearchApiBaseFacetSource 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.
\Drupal\search_api\Utility\QueryHelper $search_results_cache: The query type plugin manager.
\Drupal\search_api\Display\DisplayPluginManager $display_plugin_manager: The display plugin manager.
\Symfony\Component\HttpFoundation\Request $request: A request object for the current request.
\Drupal\Core\Extension\ModuleHandler $moduleHandler: Core's module handler class.
Overrides FacetSourcePluginBase::__construct
File
- src/
Plugin/ facets/ facet_source/ SearchApiDisplay.php, line 89
Class
- SearchApiDisplay
- Provides a facet source based on a Search API display.
Namespace
Drupal\facets\Plugin\facets\facet_sourceCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, QueryTypePluginManager $query_type_plugin_manager, QueryHelper $search_results_cache, DisplayPluginManager $display_plugin_manager, Request $request, ModuleHandler $moduleHandler) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $query_type_plugin_manager);
$this->searchApiQueryHelper = $search_results_cache;
$this->displayPluginManager = $display_plugin_manager;
$this->moduleHandler = $moduleHandler;
$this->request = clone $request;
}