function DisplayPluginBase::calculateDependencies

Same name in other branches
  1. 9 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()
  3. 11.x core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::calculateDependencies()

Overrides PluginBase::calculateDependencies

3 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.
RestExport::calculateDependencies in core/modules/rest/src/Plugin/views/display/RestExport.php
Calculates dependencies for the configured plugin.
3 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.
RestExport::calculateDependencies in core/modules/rest/src/Plugin/views/display/RestExport.php
Calculates dependencies for the configured plugin.

File

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

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.