function DisplayPluginBase::calculateDependencies
Same name in other branches
- 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()
- 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 954
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.