public function Flow::calculateDependencies in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 src/Entity/Flow.php \Drupal\cms_content_sync\Entity\Flow::calculateDependencies()
- 2.0.x src/Entity/Flow.php \Drupal\cms_content_sync\Entity\Flow::calculateDependencies()
Ensure that pools are pulled before the flows.
Overrides ConfigEntityBase::calculateDependencies
File
- src/
Entity/ Flow.php, line 172
Class
- Flow
- Defines the "Content Sync - Flow" entity.
Namespace
Drupal\cms_content_sync\EntityCode
public function calculateDependencies() {
parent::calculateDependencies();
foreach ($this
->getController()
->getUsedPools() as $pool) {
$this
->addDependency('config', 'cms_content_sync.pool.' . $pool->id);
}
}