public function validTransitions()
    {
        $action    = $this->CurrentAction();
        $transitions = $action->getValidTransitions();

        // Filter by execute permission
        return $transitions->filterByCallback(function ($transition) {
            return $transition->canExecute($this);
        });
    }
public function validTransitions()
    {
        $action    = $this->CurrentAction();
        $transitions = $action->getValidTransitions();

        // Filter by execute permission
        return $transitions->filterByCallback(function ($transition) {
            return $transition->canExecute($this);
        });
    }
public function validTransitions ( ) { $ action = $ this -> CurrentAction ( ) ; $ transitions = $ action -> getValidTransitions ( ) ; // Filter by execute permission return $ transitions -> filterByCallback ( function ( $ transition ) { return $ transition -> canExecute ( $ this ) ; } ) ; }
Get the current set of transitions that are valid for the current workflow state,
and are available to the current user.

@return array
Get the current set of transitions that are valid for the current workflow state and are available to the current user .