public function WorkflowInterface::findTransition in State Machine 8
Finds the workflow transition for moving between two given states.
Parameters
string $from_state_id: The ID of the "from" state.
string $to_state_id: The ID of the "to" state.
Return value
\Drupal\state_machine\Plugin\Workflow\WorkflowTransition|null The transition, or NULL if not found.
1 method overrides WorkflowInterface::findTransition()
- Workflow::findTransition in src/
Plugin/ Workflow/ Workflow.php - Finds the workflow transition for moving between two given states.
File
- src/
Plugin/ Workflow/ WorkflowInterface.php, line 112
Class
- WorkflowInterface
- Defines the interface for workflows.
Namespace
Drupal\state_machine\Plugin\WorkflowCode
public function findTransition($from_state_id, $to_state_id);