Back to WorkflowServiceInterface class

Method filterTransitions

public array
filterTransitions
(array $transitions, int $pk)
Method to filter transitions by given id of state.
Parameters
  • int[] $transitions Array of transitions to filter for
  • int $pk Id of the state on which the transitions are performed
Returns
  • array
Since
  • 4.0.0

Method filterTransitions - Source code

/**
 * Method to filter transitions by given id of state.
 *
 * @param   integer[]  $transitions  Array of transitions to filter for
 * @param   integer    $pk           Id of the state on which the transitions are performed
 *
 * @return  array
 *
 * @since  4.0.0
 */
public function filterTransitions(array $transitions, int $pk) : array;