function DisplayPluginBase::calculateDependencies

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::calculateDependencies()
  2. 10 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::calculateDependencies()

File

core/modules/views/src/Plugin/views/display/DisplayPluginBase.php, line 954

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

public function calculateDependencies() {
  $this->dependencies = parent::calculateDependencies();
  // Collect all the dependencies of handlers and plugins. Only calculate
  // their dependencies if they are configured by this display.
  $plugins = array_merge($this->getAllHandlers(TRUE), $this->getAllPlugins(TRUE));
  array_walk($plugins, [
    $this,
    'calculatePluginDependencies',
  ]);
  return $this->dependencies;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.