3 namespace Drupal\workflows\Annotation;
5 use Drupal\Component\Annotation\Plugin;
8 * Defines an Workflow type annotation object.
10 * Plugin Namespace: Plugin\WorkflowType
12 * For a working example, see \Drupal\content_moderation\Plugin\Workflow\ContentModerate
14 * @see \Drupal\workflows\WorkflowTypeInterface
15 * @see \Drupal\workflows\WorkflowManager
21 * The workflow system is currently experimental and should only be leveraged
22 * by experimental modules and development releases of contributed modules.
24 class WorkflowType extends Plugin {
34 * The label of the workflow.
36 * Describes how the plugin is used to apply a workflow to something.
38 * @var \Drupal\Core\Annotation\Translation
40 * @ingroup plugin_translatable
45 * States required to exist.
47 * Normally supplied by WorkflowType::defaultConfiguration().
51 public $required_states = [];