You are here

public function FacetBlock::__construct in Facets 8

Construct a FacetBlock instance.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

string $plugin_definition: The plugin implementation definition.

\Drupal\facets\FacetManager\DefaultFacetManager $facet_manager: The facet manager.

\Drupal\Core\Entity\EntityStorageInterface $facet_storage: The entity storage used for facets.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/FacetBlock.php, line 50

Class

FacetBlock
Exposes a facet rendered as a block.

Namespace

Drupal\facets\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, DefaultFacetManager $facet_manager, EntityStorageInterface $facet_storage) {
  $this->facetManager = $facet_manager;
  $this->facetStorage = $facet_storage;
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}