public function Workflow::sortTransitions in Workflow 7.2
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 includes/
Entity/ Workflow.php - @inheritdoc
File
- includes/
Entity/ Workflow.php, line 548 - Contains workflow\includes\Entity\Workflow. Contains workflow\includes\Entity\WorkflowController.
Class
Code
public function sortTransitions() {
// Sort the transitions on state weight.
usort($this->transitions, '_workflow_transitions_sort_by_weight');
}