public function Transition::to in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workflows/src/Transition.php \Drupal\workflows\Transition::to()
- 10 core/modules/workflows/src/Transition.php \Drupal\workflows\Transition::to()
Gets the transition's to state.
Return value
\Drupal\workflows\StateInterface The transition's to state.
Overrides TransitionInterface::to
File
- core/
modules/ workflows/ src/ Transition.php, line 101
Class
- Transition
- A transition value object that describes the transition between states.
Namespace
Drupal\workflowsCode
public function to() {
return $this->workflow
->getState($this->toStateId);
}