You are here

public function FacetBlock::calculateDependencies in Facets 8

Overrides BlockPluginTrait::calculateDependencies

File

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

Class

FacetBlock
Exposes a facet rendered as a block.

Namespace

Drupal\facets\Plugin\Block

Code

public function calculateDependencies() {

  /** @var \Drupal\facets\FacetInterface $facet */
  $facet = $this->facetStorage
    ->load($this
    ->getDerivativeId());
  return [
    'config' => [
      $facet
        ->getConfigDependencyName(),
    ],
  ];
}