diff --git a/core/modules/workflows/src/Plugin/WorkflowTypeBase.php b/core/modules/workflows/src/Plugin/WorkflowTypeBase.php index 9cd0fef04f5ed1c6ca090a7230e81b783e19855d..a898253d3b6c695e62b3256d66cb566c4e39e6c8 100644 --- a/core/modules/workflows/src/Plugin/WorkflowTypeBase.php +++ b/core/modules/workflows/src/Plugin/WorkflowTypeBase.php @@ -266,10 +266,12 @@ public function getTransitions(array $transition_ids = NULL) { * Sort states or transitions by weight, label, and key. * * @param \Drupal\workflows\StateInterface[]|\Drupal\workflows\TransitionInterface[] $objects - * Objects to multi-sort. + * An array of state or transition objects to multi-sort, keyed by the + * state or transition ID. * * @return \Drupal\workflows\StateInterface[]|\Drupal\workflows\TransitionInterface[] - * An array of sorted transitions or states. + * An array of sorted transitions or states, keyed by the state or + * transition ID. */ protected static function labelWeightMultisort($objects) { if (count($objects) > 1) {