This is the Gist repository for my article Set up workflows with State Machine on Drupal Commerce 2.x.
Be aware that this article has been wrote for the Blog of Antistatique — Web Agency in Lausanne, Switzerland. A place where I work as Full Stack Web Developer.
Feel free to read it the full article on Medium or check it out on Antistatique.
Content of this Gist :
- WorkflowHelper.php : Contains helper methods to retrieve workflow related data from entities.
- WorkflowTransitionEventSubscriber.php : Event subscriber to handle actions on workflow-enabled entities.
- my_workflow.services.yml
- my_workflow.workflow_groups.yml
- my_workflow.workflows.yml : Workflow(s) définiation used by State Machine module.