You are here

public function Tid::calculateDependencies in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php \Drupal\taxonomy\Plugin\views\argument_default\Tid::calculateDependencies()
  2. 9 core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php \Drupal\taxonomy\Plugin\views\argument_default\Tid::calculateDependencies()

File

core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php, line 216

Class

Tid
Taxonomy tid default argument.

Namespace

Drupal\taxonomy\Plugin\views\argument_default

Code

public function calculateDependencies() {
  $dependencies = parent::calculateDependencies();
  foreach ($this->vocabularyStorage
    ->loadMultiple(array_keys($this->options['vids'])) as $vocabulary) {
    $dependencies[$vocabulary
      ->getConfigDependencyKey()][] = $vocabulary
      ->getConfigDependencyName();
  }
  return $dependencies;
}