diff --git a/src/Plugin/Field/FieldType/WorkflowItem.php b/src/Plugin/Field/FieldType/WorkflowItem.php index f4cd03f4c25903aa7724823a2ba61b183b76011c..ff99c613632e80d8a98fd8a1dcc9591787d1b95b 100644 --- a/src/Plugin/Field/FieldType/WorkflowItem.php +++ b/src/Plugin/Field/FieldType/WorkflowItem.php @@ -21,7 +21,7 @@ use Drupal\workflow\Entity\WorkflowTransitionInterface; * id = "workflow", * label = @Translation("Workflow state"), * description = @Translation("This field stores Workflow values for a certain Workflow type from a list of allowed 'value => label' pairs, i.e. 'Publishing': 1 => unpublished, 2 => draft, 3 => published."), - * category = @Translation("Workflow"), + * category = "workflow", * default_widget = "workflow_default", * default_formatter = "list_default", * constraints = { diff --git a/workflow.field_type_categories.yml b/workflow.field_type_categories.yml new file mode 100644 index 0000000000000000000000000000000000000000..c830f71b3e6ecc4b8cff99d8b2d009878f33e58a --- /dev/null +++ b/workflow.field_type_categories.yml @@ -0,0 +1,3 @@ +workflow: + label: 'Workflow' + description: 'Workflow fields'