function Tour::calculateDependencies
Same name in other branches
- 9 core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::calculateDependencies()
- 10 core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::calculateDependencies()
- 11.x core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::calculateDependencies()
Overrides ConfigEntityBase::calculateDependencies
File
-
core/
modules/ tour/ src/ Entity/ Tour.php, line 180
Class
- Tour
- Defines the configured tour entity.
Namespace
Drupal\tour\EntityCode
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.