public function Workflow::sortTransitions in Workflow 8
Sorts all Transitions for this workflow, according to State weight.
This is only needed for the Admin UI.
Overrides WorkflowInterface::sortTransitions
1 call to Workflow::sortTransitions()
- Workflow::getTransitions in src/
Entity/ Workflow.php - Loads all allowed ConfigTransitions for this workflow.
File
- src/
Entity/ Workflow.php, line 420
Class
- Workflow
- Workflow configuration entity to persistently store configuration.
Namespace
Drupal\workflow\EntityCode
public function sortTransitions() {
// Sort the transitions on state weight.
uasort($this->transitions, [
'Drupal\\workflow\\Entity\\WorkflowConfigTransition',
'sort',
]);
}