You are here

public function Flow::calculateDependencies in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/Flow.php \Drupal\cms_content_sync\Entity\Flow::calculateDependencies()
  2. 2.1.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 163

Class

Flow
Defines the "Content Sync - Flow" entity.

Namespace

Drupal\cms_content_sync\Entity

Code

public function calculateDependencies() {
  parent::calculateDependencies();
  foreach ($this
    ->getUsedPools() as $pool) {
    $this
      ->addDependency('config', 'cms_content_sync.pool.' . $pool->id);
  }
}