You are here

public function Page::calculateDependencies in Drupal 10

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

File

core/modules/views/src/Plugin/views/display/Page.php, line 546

Class

Page
The plugin that handles a full page.

Namespace

Drupal\views\Plugin\views\display

Code

public function calculateDependencies() {
  $dependencies = parent::calculateDependencies();
  $menu = $this
    ->getOption('menu');
  if ($menu['type'] === 'normal' && ($menu_entity = $this->menuStorage
    ->load($menu['menu_name']))) {
    $dependencies[$menu_entity
      ->getConfigDependencyKey()][] = $menu_entity
      ->getConfigDependencyName();
  }
  return $dependencies;
}