You are here

public function ViewExecutable::getDependencies in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::getDependencies()

Gets dependencies for the view.

Return value

array An array of dependencies grouped by type (module, theme, entity).

See also

\Drupal\views\Entity\View::calculateDependencies()

\Drupal\views\Entity\View::getDependencies()

File

core/modules/views/src/ViewExecutable.php, line 2478

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

public function getDependencies() {
  return $this->storage
    ->calculateDependencies()
    ->getDependencies();
}