class ComplexTestType
Same name and namespace in other branches
- 11.x core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/ComplexTestType.php \Drupal\workflow_type_test\Plugin\WorkflowType\ComplexTestType
- 10 core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/ComplexTestType.php \Drupal\workflow_type_test\Plugin\WorkflowType\ComplexTestType
- 8.9.x core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/ComplexTestType.php \Drupal\workflow_type_test\Plugin\WorkflowType\ComplexTestType
- main core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/ComplexTestType.php \Drupal\workflow_type_test\Plugin\WorkflowType\ComplexTestType
Test workflow type.
Plugin annotation
@WorkflowType(
id = "workflow_type_complex_test",
label = @Translation("Workflow Type Complex Test"),
forms = {
"configure" = "\Drupal\workflow_type_test\Form\ComplexTestTypeConfigureForm",
"state" = "\Drupal\workflow_type_test\Form\ComplexTestTypeStateForm",
"transition" = "\Drupal\workflow_type_test\Form\ComplexTestTypeTransitionForm",
}
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\workflows\Plugin\WorkflowTypeBase implements \Drupal\workflows\WorkflowTypeInterface uses \Drupal\Core\Plugin\PluginWithFormsTrait extends \Drupal\Component\Plugin\PluginBase
- class \Drupal\workflow_type_test\Plugin\WorkflowType\ComplexTestType uses \Drupal\Core\StringTranslation\StringTranslationTrait extends \Drupal\workflows\Plugin\WorkflowTypeBase
- class \Drupal\workflows\Plugin\WorkflowTypeBase implements \Drupal\workflows\WorkflowTypeInterface uses \Drupal\Core\Plugin\PluginWithFormsTrait extends \Drupal\Component\Plugin\PluginBase
Expanded class hierarchy of ComplexTestType
File
-
core/
modules/ workflows/ tests/ modules/ workflow_type_test/ src/ Plugin/ WorkflowType/ ComplexTestType.php, line 21
Namespace
Drupal\workflow_type_test\Plugin\WorkflowTypeView source
class ComplexTestType extends WorkflowTypeBase {
use StringTranslationTrait;
/**
* {@inheritdoc}
*/
public function onDependencyRemoval(array $dependencies) {
// Always return TRUE to allow the logic in
// \Drupal\workflows\Entity\Workflow::onDependencyRemoval() to be tested.
return TRUE;
}
/**
* {@inheritdoc}
*/
public function defaultConfiguration() {
return parent::defaultConfiguration() + [
'example_setting' => '',
];
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.