3 namespace Drupal\workflow_type_test\Plugin\WorkflowType;
5 use Drupal\workflows\Plugin\WorkflowTypeBase;
11 * id = "workflow_type_test",
12 * label = @Translation("Workflow Type Test"),
15 class TestType extends WorkflowTypeBase {
20 public function getRequiredStates() {
21 // Normally this is obtained from the annotation but we get from state to
22 // allow dynamic testing.
23 return \Drupal::state()->get('workflow_type_test.required_states', []);