public function WorkflowTransitionEvent::getToState in State Machine 8
Gets the "to" state.
Return value
\Drupal\state_machine\Plugin\Workflow\WorkflowState The "to" state.
Deprecated
in state_machine:8.x-1.0-rc1 and is removed from state_machine:8.x-2.0. Use $this->getTransition->getToState() instead.
See also
https://www.drupal.org/node/2982709
File
- src/
Event/ WorkflowTransitionEvent.php, line 139
Class
- WorkflowTransitionEvent
- Defines the workflow transition event.
Namespace
Drupal\state_machine\EventCode
public function getToState() {
return $this->transition
->getToState();
}