You are here

public function FlowControllerSimple::usesPool in CMS Content Sync 2.1.x

Check if the given pool is used by this Flow. If any handler set the flow as FORCE or ALLOW, this will return TRUE.

Parameters

Pool $pool:

Return value

bool

Overrides FlowControllerBase::usesPool

File

src/Controller/FlowControllerSimple.php, line 590

Class

FlowControllerSimple

Namespace

Drupal\cms_content_sync\Controller

Code

public function usesPool($pool) {
  $settings = $this->flow->simple_settings;
  if (!isset($settings['pools']) || !is_array($settings['pools'])) {
    return true;
  }
  return in_array($pool->id, $settings['pools']);
}