function WorkflowTypeInterface::hasTransitionFromStateToState
Same name in other branches
- 9 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::hasTransitionFromStateToState()
- 8.9.x core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::hasTransitionFromStateToState()
- 11.x core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::hasTransitionFromStateToState()
Determines if a transition from state to state exists.
Parameters
string $from_state_id: The state ID to transition from.
string $to_state_id: The state ID to transition to.
Return value
bool TRUE if the transition exists, FALSE if not.
1 method overrides WorkflowTypeInterface::hasTransitionFromStateToState()
- WorkflowTypeBase::hasTransitionFromStateToState in core/
modules/ workflows/ src/ Plugin/ WorkflowTypeBase.php - Determines if a transition from state to state exists.
File
-
core/
modules/ workflows/ src/ WorkflowTypeInterface.php, line 292
Class
- WorkflowTypeInterface
- An interface for Workflow type plugins.
Namespace
Drupal\workflowsCode
public function hasTransitionFromStateToState($from_state_id, $to_state_id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.