You are here

public function SaveSearch::calculateDependencies in Search API Saved Searches 8

Overrides BlockPluginTrait::calculateDependencies

File

src/Plugin/Block/SaveSearch.php, line 276

Class

SaveSearch
Displays the "Save search" form in a block.

Namespace

Drupal\search_api_saved_searches\Plugin\Block

Code

public function calculateDependencies() {
  $dependencies = parent::calculateDependencies();
  $type = $this
    ->getSavedSearchType();
  if ($type) {
    $dependencies['config'][] = $type
      ->getConfigDependencyName();
  }
  return $dependencies;
}