Programming Language PHP

Namespace Oro\Bundle\WorkflowBundle\Model

Class Transition

Method/Function setAction

Total Examples 1

1 code examples of PHP Oro\Bundle\WorkflowBundle\Model\Transition::setAction extracted from open source projects

Was this example useful?
0
                                                    protected function processActions(Transition $transition, array $actions)
    {
        if ($transition->getDisplayType() === WorkflowConfiguration::TRANSITION_DISPLAY_TYPE_PAGE) {
            $actions = array_merge([
                [
                    '@resolve_destination_page' => $transition->getDestinationPage(),
                ],
            ], $actions);
        }

        if (empty($actions)) {
            return;
        }

        $transition->setAction($this->actionFactory->create(ConfigurableAction::ALIAS, $actions));
    }
                                            
Transition's Other Methods