You are here

function hook_workflows_alter in State Machine 8

Alter workflows.

Parameters

array $workflows: Workflow definitions, keyed by plugin ID.

1 invocation of hook_workflows_alter()
WorkflowManager::__construct in src/WorkflowManager.php
Constructs a new WorkflowManager object.

File

./state_machine.api.php, line 19
Hooks provided by the State Machine module.

Code

function hook_workflows_alter(array &$workflows) {
  $workflows['default']['label'] = 'Altered label';
}