function Workflow::status

Same name in other branches
  1. 9 core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::status()
  2. 8.9.x core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::status()
  3. 10 core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::status()

Overrides ConfigEntityBase::status

File

core/modules/workflows/src/Entity/Workflow.php, line 163

Class

Workflow
Defines the workflow entity.

Namespace

Drupal\workflows\Entity

Code

public function status() {
    // In order for a workflow to be usable it must have at least one state.
    return !empty($this->status) && !empty($this->getTypePlugin()
        ->getStates());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.