function 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.