You are here

protected function WorkflowCollector::enabled in Workbench Moderation to Content Moderation 8.2

1 call to WorkflowCollector::enabled()
WorkflowCollector::getWorkflows in src/WorkflowCollector.php
Returns all unique content type workflows.

File

src/WorkflowCollector.php, line 151

Class

WorkflowCollector

Namespace

Drupal\wbm2cm

Code

protected function enabled() {

  /** @var \Drupal\Core\Config\Entity\ConfigEntityInterface $entity */
  foreach ($this
    ->supported() as $id => $entity) {
    if ($entity
      ->getThirdPartySetting('workbench_moderation', 'enabled', FALSE)) {
      (yield $id => $entity);
    }
  }
}