summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Rowlands2017-08-15 08:14:16 +1000
committerLee Rowlands2017-08-15 08:14:16 +1000
commitf9c65b116005ce157085fbea10e3c03e35ee95c6 (patch)
tree655c219442a185d6378fcedcbe8dd94e0307b241
parent10a1e15fa3007885b20eef753a9495e551853df9 (diff)
Issue #2900700 by timmillwood: Add orderby to content_moderation schema sequences
-rw-r--r--core/modules/content_moderation/config/install/workflows.workflow.editorial.yml28
-rw-r--r--core/modules/content_moderation/config/schema/content_moderation.schema.yml2
2 files changed, 16 insertions, 14 deletions
diff --git a/core/modules/content_moderation/config/install/workflows.workflow.editorial.yml b/core/modules/content_moderation/config/install/workflows.workflow.editorial.yml
index 455d3fc..52dbc27 100644
--- a/core/modules/content_moderation/config/install/workflows.workflow.editorial.yml
+++ b/core/modules/content_moderation/config/install/workflows.workflow.editorial.yml
@@ -24,20 +24,6 @@ type_settings:
default_revision: true
weight: 0
transitions:
- create_new_draft:
- label: 'Create New Draft'
- to: draft
- weight: 0
- from:
- - draft
- - published
- publish:
- label: Publish
- to: published
- weight: 1
- from:
- - draft
- - published
archive:
label: Archive
from:
@@ -56,4 +42,18 @@ type_settings:
- archived
to: published
weight: 4
+ create_new_draft:
+ label: 'Create New Draft'
+ to: draft
+ weight: 0
+ from:
+ - draft
+ - published
+ publish:
+ label: Publish
+ to: published
+ weight: 1
+ from:
+ - draft
+ - published
entity_types: { }
diff --git a/core/modules/content_moderation/config/schema/content_moderation.schema.yml b/core/modules/content_moderation/config/schema/content_moderation.schema.yml
index d38e858..5a10d85 100644
--- a/core/modules/content_moderation/config/schema/content_moderation.schema.yml
+++ b/core/modules/content_moderation/config/schema/content_moderation.schema.yml
@@ -22,11 +22,13 @@ workflow.type_settings.content_moderation:
states:
type: sequence
label: 'Content moderation states'
+ orderby: key
sequence:
type: content_moderation.state
label: 'States'
transitions:
type: sequence
+ orderby: key
sequence:
type: workflows.transition
label: 'Transitions'