function RestExport::calculateDependencies

Overrides DisplayPluginBase::calculateDependencies

File

core/modules/rest/src/Plugin/views/display/RestExport.php, line 495

Class

RestExport
The plugin that handles Data response callbacks for REST resources.

Namespace

Drupal\rest\Plugin\views\display

Code

public function calculateDependencies() {
    $dependencies = parent::calculateDependencies();
    $dependencies += [
        'module' => [],
    ];
    $dependencies['module'] = array_merge($dependencies['module'], array_filter(array_map(function ($provider) {
        // During the update path the provider options might be wrong. This can
        // happen when any update function, like block_update_8300() triggers a
        // view to be saved.
        return isset($this->authenticationProviderIds[$provider]) ? $this->authenticationProviderIds[$provider] : NULL;
    }, $this->getOption('auth'))));
    return $dependencies;
}

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