X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fworkflows%2Fsrc%2FWorkflowTypeInterface.php;fp=web%2Fcore%2Fmodules%2Fworkflows%2Fsrc%2FWorkflowTypeInterface.php;h=0cb47a49044aa5d139007d3bb5eeb8ec8643fd06;hp=5ef843b4cb3e1c5eab8a4aadab23b3fc66bd3ab5;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/workflows/src/WorkflowTypeInterface.php b/web/core/modules/workflows/src/WorkflowTypeInterface.php index 5ef843b4c..0cb47a490 100644 --- a/web/core/modules/workflows/src/WorkflowTypeInterface.php +++ b/web/core/modules/workflows/src/WorkflowTypeInterface.php @@ -124,7 +124,7 @@ interface WorkflowTypeInterface extends PluginWithFormsInterface, DerivativeInsp * A list of state IDs to get. If NULL then all states will be returned. * * @return \Drupal\workflows\StateInterface[] - * An array of workflow states. + * An array of workflow states, keyed by state IDs. * * @throws \InvalidArgumentException * Thrown if $state_ids contains a state ID that does not exist. @@ -248,13 +248,17 @@ interface WorkflowTypeInterface extends PluginWithFormsInterface, DerivativeInsp * @param $state_id * The state to get transitions for. * @param string $direction - * (optional) The direction of the transition. Defaults to 'from'. Possible - * values are: 'from' and 'to'. + * (optional) The direction of the transition, defaults to + * 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. + * + * @see \Drupal\workflows\TransitionInterface::DIRECTION_FROM + * @see \Drupal\workflows\TransitionInterface::DIRECTION_TO */ - public function getTransitionsForState($state_id, $direction = 'from'); + public function getTransitionsForState($state_id, $direction = TransitionInterface::DIRECTION_FROM); /** * Gets a transition from state to state.