function HandlerBase::calculateDependencies
Same name in other branches
- 9 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::calculateDependencies()
- 8.9.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::calculateDependencies()
- 10 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::calculateDependencies()
Overrides PluginBase::calculateDependencies
9 calls to HandlerBase::calculateDependencies()
- Bundle::calculateDependencies in core/
modules/ views/ src/ Plugin/ views/ filter/ Bundle.php - Calculates dependencies for the configured plugin.
- Entity::calculateDependencies in core/
modules/ views/ src/ Plugin/ views/ area/ Entity.php - Calculates dependencies for the configured plugin.
- EntityField::calculateDependencies in core/
modules/ views/ src/ Plugin/ views/ field/ EntityField.php - Calculates dependencies for the configured plugin.
- EntityReference::calculateDependencies in core/
modules/ views/ src/ Plugin/ views/ filter/ EntityReference.php - Calculates dependencies for the configured plugin.
- ModerationStateFilter::calculateDependencies in core/
modules/ content_moderation/ src/ Plugin/ views/ filter/ ModerationStateFilter.php - Calculates dependencies for the configured plugin.
11 methods override HandlerBase::calculateDependencies()
- ArgumentPluginBase::calculateDependencies in core/
modules/ views/ src/ Plugin/ views/ argument/ ArgumentPluginBase.php - Calculates dependencies for the configured plugin.
- Bundle::calculateDependencies in core/
modules/ views/ src/ Plugin/ views/ filter/ Bundle.php - Calculates dependencies for the configured plugin.
- Entity::calculateDependencies in core/
modules/ views/ src/ Plugin/ views/ area/ Entity.php - Calculates dependencies for the configured plugin.
- EntityField::calculateDependencies in core/
modules/ views/ src/ Plugin/ views/ field/ EntityField.php - Calculates dependencies for the configured plugin.
- EntityReference::calculateDependencies in core/
modules/ views/ src/ Plugin/ views/ filter/ EntityReference.php - Calculates dependencies for the configured plugin.
File
-
core/
modules/ views/ src/ Plugin/ views/ HandlerBase.php, line 877
Class
- HandlerBase
- Base class for Views handler plugins.
Namespace
Drupal\views\Plugin\viewsCode
public function calculateDependencies() {
$dependencies = parent::calculateDependencies();
if ($this->table) {
// Ensure that the view depends on the module that provides the table.
$data = $this->getViewsData()
->get($this->table);
if (isset($data['table']['provider'])) {
$dependencies['module'][] = $data['table']['provider'];
}
}
return $dependencies;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.