function DisplayPluginBase::calculateDependencies
Same name in other branches
- 9 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::calculateDependencies()
- 8.9.x core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::calculateDependencies()
- 10 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 - Page::calculateDependencies in core/
modules/ views/ src/ Plugin/ views/ display/ Page.php
2 methods override DisplayPluginBase::calculateDependencies()
- DisplayTest::calculateDependencies in core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ display/ DisplayTest.php - Page::calculateDependencies in core/
modules/ views/ src/ Plugin/ views/ display/ Page.php
File
-
core/
modules/ views/ src/ Plugin/ views/ display/ DisplayPluginBase.php, line 962
Class
- DisplayPluginBase
- Base class for views display plugins.
Namespace
Drupal\views\Plugin\views\displayCode
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.