You are here

public function Flow::getUsedPools in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Flow.php \Drupal\cms_content_sync\Entity\Flow::getUsedPools()

Get a list of all pools this Flow is using.

Return value

Pool[]

1 call to Flow::getUsedPools()
Flow::calculateDependencies in src/Entity/Flow.php
Ensure that pools are pulled before the flows.

File

src/Entity/Flow.php, line 306

Class

Flow
Defines the "Content Sync - Flow" entity.

Namespace

Drupal\cms_content_sync\Entity

Code

public function getUsedPools() {
  $result = [];
  $pools = Pool::getAll();
  foreach ($pools as $id => $pool) {
    if ($this
      ->usesPool($pool)) {
      $result[$id] = $pool;
    }
  }
  return $result;
}