From 542a79d660466f2dfde97f7bf98cb4d2d73c474f Mon Sep 17 00:00:00 2001 From: Lee Rowlands Date: Thu, 13 Apr 2023 19:13:27 +1000 Subject: [PATCH] Issue #3346099 by rckstr_rohan, dww, joachim, smustgrave: @return docs for WorkflowTypeInterface::getTransitionsForState() are wrong --- core/modules/workflows/src/WorkflowTypeInterface.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/modules/workflows/src/WorkflowTypeInterface.php b/core/modules/workflows/src/WorkflowTypeInterface.php index fc2051e64490..37901e5ad30c 100644 --- a/core/modules/workflows/src/WorkflowTypeInterface.php +++ b/core/modules/workflows/src/WorkflowTypeInterface.php @@ -244,7 +244,7 @@ interface WorkflowTypeInterface extends PluginWithFormsInterface, DerivativeInsp public function getTransitions(array $transition_ids = NULL); /** - * Gets the transition IDs for a state for the provided direction. + * Gets the transitions for a state for the provided direction. * * @param $state_id * The state to get transitions for. @@ -253,8 +253,9 @@ interface WorkflowTypeInterface extends PluginWithFormsInterface, DerivativeInsp * TransitionInterface::DIRECTION_FROM. Possible values are: * TransitionInterface::DIRECTION_FROM or TransitionInterface::DIRECTION_TO. * - * @return array - * The transition IDs for a state for the provided direction. + * @return \Drupal\workflows\TransitionInterface[] + * An array of the transition objects for the state in the given direction, + * keyed by transition ID. * * @see \Drupal\workflows\TransitionInterface::DIRECTION_FROM * @see \Drupal\workflows\TransitionInterface::DIRECTION_TO