You are here

public function SearchApiPageBlock::calculateDependencies in Search API Pages 8

Overrides BlockPluginTrait::calculateDependencies

File

src/Plugin/Block/SearchApiPageBlock.php, line 115

Class

SearchApiPageBlock
Provides a 'Search Api page form' block.

Namespace

Drupal\search_api_page\Plugin\Block

Code

public function calculateDependencies() {
  $search_api_page = $this->searchApiPageStorage
    ->load($this->configuration['search_api_page']);
  if ($search_api_page === NULL) {
    return [];
  }
  return [
    'config' => [
      $search_api_page
        ->getConfigDependencyName(),
    ],
  ];
}