function StateInterface::getTransitionTo
Same name and namespace in other branches
- 11.x core/modules/workflows/src/StateInterface.php \Drupal\workflows\StateInterface::getTransitionTo()
Gets the Transition object for the provided state ID.
Parameters
$to_state_id: The state to transition to.
Return value
\Drupal\workflows\TransitionInterface The Transition object for the provided state ID.
Throws
\InvalidArgumentException() Exception thrown when the provided state ID can not be transitioned to.
File
-
core/
modules/ workflows/ src/ StateInterface.php, line 66
Class
- StateInterface
- An interface for state value objects.
Namespace
Drupal\workflowsCode
public function getTransitionTo($to_state_id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.