class WorkflowExtension extends AbstractExtension
WorkflowExtension.
| __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. | |
| bool | hasMarkedPlace(object $subject, string $placeName, string $name = null) Returns true if the place is marked. | |
| string[]|int[] | getMarkedPlaces(object $subject, bool $placesNameOnly = true, string $name = null) Returns marked places. | |
| string|null | getMetadata($subject, string $key, $metadataSubject = null, string $name = null) Returns the metadata for a specific subject. | |
| getName() |
| Registry | $workflowRegistry |
Returns true if the transition is enabled.
| object | $subject | A subject |
| string | $transitionName | A transition |
| string | $name | A workflow name |
| bool | true if the transition is enabled |
Returns all enabled transitions.
| object | $subject | A subject |
| string | $name | A workflow name |
| Transition[] | All enabled transitions |
Returns true if the place is marked.
| object | $subject | A subject |
| string | $placeName | A place name |
| string | $name | A workflow name |
| bool | true if the transition is enabled |
Returns marked places.
| object | $subject | A subject |
| bool | $placesNameOnly | If true, returns only places name. If false returns the raw representation |
| string | $name | A workflow name |
| string[]|int[] |
Returns the metadata for a specific subject.
| $subject | ||
| string | $key | |
| $metadataSubject | ||
| string | $name |
| string|null |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Twig/Extension/WorkflowExtension.html