function State::getTransitions
Same name and namespace in other branches
- 8.9.x core/modules/workflows/src/State.php \Drupal\workflows\State::getTransitions()
- 10 core/modules/workflows/src/State.php \Drupal\workflows\State::getTransitions()
- 11.x core/modules/workflows/src/State.php \Drupal\workflows\State::getTransitions()
Gets all the possible transition objects for the state.
Return value
\Drupal\workflows\TransitionInterface[] All the possible transition objects for the state.
Overrides StateInterface::getTransitions
File
-
core/
modules/ workflows/ src/ State.php, line 98
Class
- State
- A value object representing a workflow state.
Namespace
Drupal\workflowsCode
public function getTransitions() {
return $this->workflow
->getTransitionsForState($this->id);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.