You are here

public function CoreViewsUrlProcessor::__construct in Core Views Facets 8

Constructs a new instance of the class.

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.

\Symfony\Component\HttpFoundation\Request $request: A request object for the current request.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The Entity Type Manager.

\Drupal\views\ViewExecutableFactory $executable_factory: The view executable factory.

Throws

\Drupal\facets\Exception\InvalidProcessorException

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

Overrides UrlProcessorPluginBase::__construct

File

src/Plugin/facets/url_processor/CoreViewsUrlProcessor.php, line 70

Class

CoreViewsUrlProcessor
A url processor for views exposed filters.

Namespace

Drupal\core_views_facets\Plugin\facets\url_processor

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Request $request, EntityTypeManagerInterface $entity_type_manager, ViewExecutableFactory $executable_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $request, $entity_type_manager);
  $this->executableFactory = $executable_factory;
  $this->storage = $entity_type_manager
    ->getStorage('view');
}