public function FacetsSummaryBlock::__construct in Facets 8
Constructs a source summary block.
Parameters
array $configuration: The configuration of the Facets Summary Block.
string $plugin_id: The block plugin block identifier.
array $plugin_definition: The block plugin block definition.
\Drupal\facets_summary\FacetsSummaryManager\DefaultFacetsSummaryManager $facets_summary_manager: The facet manager service.
Overrides BlockPluginTrait::__construct
File
- modules/
facets_summary/ src/ Plugin/ Block/ FacetsSummaryBlock.php, line 52
Class
- FacetsSummaryBlock
- Exposes a summary based on all the facets as a block.
Namespace
Drupal\facets_summary\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, DefaultFacetsSummaryManager $facets_summary_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->facetsSummaryManager = $facets_summary_manager;
}