ddd074a019db02d27684357b88ebdb58f3e8c49c
[yaffs-website] / web / core / modules / workflows / tests / modules / workflow_type_test / src / Plugin / WorkflowType / TestType.php
1 <?php
2
3 namespace Drupal\workflow_type_test\Plugin\WorkflowType;
4
5 use Drupal\workflows\Plugin\WorkflowTypeBase;
6
7 /**
8  * Test workflow type.
9  *
10  * @WorkflowType(
11  *   id = "workflow_type_test",
12  *   label = @Translation("Workflow Type Test"),
13  * )
14  */
15 class TestType extends WorkflowTypeBase {
16
17   /**
18    * {@inheritdoc}
19    */
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', []);
24   }
25
26 }