function RequiredStateTestType::defaultConfiguration
Same name in other branches
- 8.9.x core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/RequiredStateTestType.php \Drupal\workflow_type_test\Plugin\WorkflowType\RequiredStateTestType::defaultConfiguration()
- 10 core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/RequiredStateTestType.php \Drupal\workflow_type_test\Plugin\WorkflowType\RequiredStateTestType::defaultConfiguration()
- 11.x core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/RequiredStateTestType.php \Drupal\workflow_type_test\Plugin\WorkflowType\RequiredStateTestType::defaultConfiguration()
Overrides WorkflowTypeBase::defaultConfiguration
File
-
core/
modules/ workflows/ tests/ modules/ workflow_type_test/ src/ Plugin/ WorkflowType/ RequiredStateTestType.php, line 27
Class
- RequiredStateTestType
- Test workflow type.
Namespace
Drupal\workflow_type_test\Plugin\WorkflowTypeCode
public function defaultConfiguration() {
return [
'states' => [
'fresh' => [
'label' => 'Fresh',
'weight' => 0,
],
'rotten' => [
'label' => 'Rotten',
'weight' => 1,
],
],
'transitions' => [
'rot' => [
'label' => 'Rot',
'to' => 'rotten',
'weight' => 0,
'from' => [
'fresh',
],
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.