public function WorkflowInterface::getTransition in State Machine 8
Gets a workflow transition with the given ID.
Parameters
string $id: The transition ID.
Return value
\Drupal\state_machine\Plugin\Workflow\WorkflowTransition|null The requested transition, or NULL if not found.
1 method overrides WorkflowInterface::getTransition()
- Workflow::getTransition in src/
Plugin/ Workflow/ Workflow.php - Gets a workflow transition with the given ID.
File
- src/
Plugin/ Workflow/ WorkflowInterface.php, line 72
Class
- WorkflowInterface
- Defines the interface for workflows.
Namespace
Drupal\state_machine\Plugin\WorkflowCode
public function getTransition($id);