public function Tour::calculateDependencies in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::calculateDependencies()
Calculates dependencies and stores them in the dependency property.
Return value
$this
Overrides ConfigEntityBase::calculateDependencies
See also
\Drupal\Core\Config\Entity\ConfigDependencyManager
File
- core/
modules/ tour/ src/ Entity/ Tour.php, line 176 - Contains \Drupal\tour\Entity\Tour.
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;
}