You are here

public function DisplayGeneratedLinkBlock::__construct in Facets 8

Constructs an DisplayGeneratedLinkBlock 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\Utility\FacetsUrlGenerator $facets_url_generator: The facets URL generator service.

\Drupal\Core\State\StateInterface $state: The state key/value store.

Overrides BlockPluginTrait::__construct

File

tests/facets_query_processor/src/Plugin/Block/DisplayGeneratedLinkBlock.php, line 50

Class

DisplayGeneratedLinkBlock
Class DisplayGeneratedLinkBlock.

Namespace

Drupal\facets_query_processor\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, FacetsUrlGenerator $facets_url_generator, StateInterface $state) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->urlGeneratorService = $facets_url_generator;
  $this->state = $state;
}