function WorkflowTypeTestHooks::workflowTypeInfoAlter
Same name and namespace in other branches
- 11.x core/modules/workflows/tests/modules/workflow_type_test/src/Hook/WorkflowTypeTestHooks.php \Drupal\workflow_type_test\Hook\WorkflowTypeTestHooks::workflowTypeInfoAlter()
Implements hook_workflow_type_info_alter().
Attributes
#[Hook('workflow_type_info_alter')]
File
-
core/
modules/ workflows/ tests/ modules/ workflow_type_test/ src/ Hook/ WorkflowTypeTestHooks.php, line 22
Class
- WorkflowTypeTestHooks
- Hook implementations for workflow_type_test.
Namespace
Drupal\workflow_type_test\HookCode
public function workflowTypeInfoAlter(&$definitions) : void {
// Allow tests to override the workflow type definitions.
$state = \Drupal::state();
if ($state->get('workflow_type_test.plugin_definitions') !== NULL) {
$definitions = $state->get('workflow_type_test.plugin_definitions');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.