function View::calculateDependencies
Overrides HandlerBase::calculateDependencies
File
- 
              core/modules/ views/ src/ Plugin/ views/ area/ View.php, line 152 
Class
- View
- Views area handlers. Insert a view inside of an area.
Namespace
Drupal\views\Plugin\views\areaCode
public function calculateDependencies() {
  $dependencies = parent::calculateDependencies();
  [$view_id] = explode(':', $this->options['view_to_insert'], 2);
  // Don't call the current view, as it would result into an infinite recursion.
  if ($view_id && $this->view->storage
    ->id() != $view_id) {
    $view = $this->viewStorage
      ->load($view_id);
    $dependencies[$view->getConfigDependencyKey()][] = $view->getConfigDependencyName();
  }
  return $dependencies;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
