function Workflow::status
Same name in other branches
- 9 core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::status()
- 10 core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::status()
- 11.x 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\EntityCode
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.