summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2017-09-26 12:15:17 (GMT)
committerNathaniel Catchpole2017-09-26 12:15:17 (GMT)
commit2d0182426a9d0ecb42cc7f69c87291b6a5d3ef00 (patch)
treeb96184ad27e2deb5387df9e58901176ec7a6ab1f
parent57762d192d623955d58fb8b17769d98a04d1309e (diff)
Issue #2906879 by xjm, Sam152: WorkflowTypeBase:: labelWeightMultisort() has meaningful param/return keys, but docs do not indicate this
-rw-r--r--core/modules/workflows/src/Plugin/WorkflowTypeBase.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/modules/workflows/src/Plugin/WorkflowTypeBase.php b/core/modules/workflows/src/Plugin/WorkflowTypeBase.php
index 9cd0fef..a898253 100644
--- a/core/modules/workflows/src/Plugin/WorkflowTypeBase.php
+++ b/core/modules/workflows/src/Plugin/WorkflowTypeBase.php
@@ -266,10 +266,12 @@ abstract class WorkflowTypeBase extends PluginBase implements WorkflowTypeInterf
* 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) {