X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fworkflows%2Fsrc%2FAnnotation%2FWorkflowType.php;h=496a9b822412cf6f5f190fde516adb3fab3d00f1;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=6e578ed4b9ed313836557815194be8f6246189b8;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/workflows/src/Annotation/WorkflowType.php b/web/core/modules/workflows/src/Annotation/WorkflowType.php index 6e578ed4b..496a9b822 100644 --- a/web/core/modules/workflows/src/Annotation/WorkflowType.php +++ b/web/core/modules/workflows/src/Annotation/WorkflowType.php @@ -12,14 +12,11 @@ use Drupal\Component\Annotation\Plugin; * For a working example, see \Drupal\content_moderation\Plugin\Workflow\ContentModerate * * @see \Drupal\workflows\WorkflowTypeInterface - * @see \Drupal\workflows\WorkflowManager + * @see \Drupal\workflows\WorkflowTypeManager + * @see workflow_type_info_alter() * @see plugin_api * * @Annotation - * - * @internal - * The workflow system is currently experimental and should only be leveraged - * by experimental modules and development releases of contributed modules. */ class WorkflowType extends Plugin { @@ -33,8 +30,6 @@ class WorkflowType extends Plugin { /** * The label of the workflow. * - * Describes how the plugin is used to apply a workflow to something. - * * @var \Drupal\Core\Annotation\Translation * * @ingroup plugin_translatable @@ -50,4 +45,25 @@ class WorkflowType extends Plugin { */ public $required_states = []; + /** + * A list of optional form classes implementing PluginFormInterface. + * + * Forms which will be used for the workflow UI are: + * - 'configure' (\Drupal\workflows\WorkflowTypeInterface::PLUGIN_FORM_KEY) + * - 'state' (\Drupal\workflows\StateInterface::PLUGIN_FORM_KEY) + * - 'transition' (\Drupal\workflows\TransitionInterface::PLUGIN_FORM_KEY) + * + * @see \Drupal\Core\Plugin\PluginWithFormsInterface + * @see \Drupal\Core\Plugin\PluginFormInterface + * @see \Drupal\workflows\Plugin\WorkflowTypeConfigureFormBase + * @see \Drupal\workflows\Plugin\WorkflowTypeStateFormBase + * @see \Drupal\workflows\Plugin\WorkflowTypeTransitionFormBase + * @see \Drupal\workflows\WorkflowTypeInterface::PLUGIN_FORM_KEY + * @see \Drupal\workflows\StateInterface::PLUGIN_FORM_KEY + * @see \Drupal\workflows\TransitionInterface::PLUGIN_FORM_KEY + * + * @var array + */ + public $forms = []; + }