WorkflowExtension

class WorkflowExtension extends AbstractExtension

WorkflowExtension.

Methods

__construct(Registry $workflowRegistry)
getFunctions()
bool canTransition(object $subject, string $transitionName, string $name = null)

Returns true if the transition is enabled.

Transition[] getEnabledTransitions(object $subject, string $name = null)

Returns all enabled transitions.

getName()

Details

__construct(Registry $workflowRegistry)

Parameters

Registry $workflowRegistry

getFunctions()

bool canTransition(object $subject, string $transitionName, string $name = null)

Returns true if the transition is enabled.

Parameters

object $subject A subject
string $transitionName A transition
string $name A workflow name

Return Value

bool true if the transition is enabled

Transition[] getEnabledTransitions(object $subject, string $name = null)

Returns all enabled transitions.

Parameters

object $subject A subject
string $name A workflow name

Return Value

Transition[] All enabled transitions

getName()

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Bridge/Twig/Extension/WorkflowExtension.html