function DisplayPluginBase::calculateDependencies

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

Overrides PluginBase::calculateDependencies

2 calls to DisplayPluginBase::calculateDependencies()
DisplayTest::calculateDependencies in core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php
Calculates dependencies for the configured plugin.
Page::calculateDependencies in core/modules/views/src/Plugin/views/display/Page.php
Calculates dependencies for the configured plugin.
2 methods override DisplayPluginBase::calculateDependencies()
DisplayTest::calculateDependencies in core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php
Calculates dependencies for the configured plugin.
Page::calculateDependencies in core/modules/views/src/Plugin/views/display/Page.php
Calculates dependencies for the configured plugin.

File

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

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.