class TestType in Drupal 10
Same name and namespace in other branches
- 8 core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/TestType.php \Drupal\workflow_type_test\Plugin\WorkflowType\TestType
- 9 core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/TestType.php \Drupal\workflow_type_test\Plugin\WorkflowType\TestType
Test workflow type.
Plugin annotation
@WorkflowType(
id = "workflow_type_test",
label = @Translation("Workflow Type Test"),
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\workflows\Plugin\WorkflowTypeBase implements WorkflowTypeInterface uses PluginWithFormsTrait
- class \Drupal\workflow_type_test\Plugin\WorkflowType\TestType
- class \Drupal\workflows\Plugin\WorkflowTypeBase implements WorkflowTypeInterface uses PluginWithFormsTrait
Expanded class hierarchy of TestType
4 files declare their use of TestType
- StateTest.php in core/
modules/ workflows/ tests/ src/ Unit/ StateTest.php - StateTransitionValidationTest.php in core/
modules/ content_moderation/ tests/ src/ Unit/ StateTransitionValidationTest.php - TransitionTest.php in core/
modules/ workflows/ tests/ src/ Unit/ TransitionTest.php - WorkflowTest.php in core/
modules/ workflows/ tests/ src/ Unit/ WorkflowTest.php
File
- core/
modules/ workflows/ tests/ modules/ workflow_type_test/ src/ Plugin/ WorkflowType/ TestType.php, line 15
Namespace
Drupal\workflow_type_test\Plugin\WorkflowTypeView source
class TestType extends WorkflowTypeBase {
/**
* {@inheritdoc}
*/
public function getRequiredStates() {
// Normally this is obtained from the annotation but we get from state to
// allow dynamic testing.
return \Drupal::state()
->get('workflow_type_test.required_states', []);
}
}