function QueryPluginBase::calculateDependencies

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::calculateDependencies()
  2. 10 core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::calculateDependencies()
  3. 11.x core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::calculateDependencies()

Overrides PluginBase::calculateDependencies

1 call to QueryPluginBase::calculateDependencies()
QueryTest::calculateDependencies in core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php
Calculates dependencies for the configured plugin.
1 method overrides QueryPluginBase::calculateDependencies()
QueryTest::calculateDependencies in core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php
Calculates dependencies for the configured plugin.

File

core/modules/views/src/Plugin/views/query/QueryPluginBase.php, line 124

Class

QueryPluginBase
Base plugin class for Views queries.

Namespace

Drupal\views\Plugin\views\query

Code

public function calculateDependencies() {
    $dependencies = [];
    foreach ($this->getEntityTableInfo() as $info) {
        if (!empty($info['provider'])) {
            $dependencies['module'][] = $info['provider'];
        }
    }
    return $dependencies;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.