function Tour::calculateDependencies

Same name in other branches
  1. 9 core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::calculateDependencies()
  2. 8.9.x core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::calculateDependencies()
  3. 10 core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::calculateDependencies()

Overrides ConfigEntityBase::calculateDependencies

File

core/modules/tour/src/Entity/Tour.php, line 177

Class

Tour
Defines the configured tour entity.

Namespace

Drupal\tour\Entity

Code

public function calculateDependencies() {
    parent::calculateDependencies();
    foreach ($this->tipsCollection as $instance) {
        $definition = $instance->getPluginDefinition();
        $this->addDependency('module', $definition['provider']);
    }
    $this->addDependency('module', $this->module);
    return $this;
}

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