Unverified Commit e7d43505 authored by larowlan's avatar larowlan

Revert "Issue #2894499 by amateescu, Manuel Garcia, xjm: Rename 'Editorial...

Revert "Issue #2894499 by amateescu, Manuel Garcia, xjm: Rename 'Editorial workflow' to 'Editorial'"

This reverts commit 6fb8ad45.
parent 6fb8ad45
......@@ -4,7 +4,7 @@ dependencies:
module:
- content_moderation
id: editorial
label: 'Editorial'
label: 'Editorial workflow'
type: content_moderation
type_settings:
states:
......
......@@ -15,6 +15,6 @@
class ModerationStateConstraint extends Constraint {
public $message = 'Invalid state transition from %from to %to';
public $invalidStateMessage = 'State %state does not exist on %workflow workflow';
public $invalidStateMessage = 'State %state does not exist on %workflow';
}
......@@ -116,7 +116,7 @@ public function testInvalidState() {
$violations = $node->validate();
$this->assertCount(1, $violations);
$this->assertEquals('State <em class="placeholder">invalid_state</em> does not exist on <em class="placeholder">Editorial</em> workflow', $violations->get(0)->getMessage());
$this->assertEquals('State <em class="placeholder">invalid_state</em> does not exist on <em class="placeholder">Editorial workflow</em>', $violations->get(0)->getMessage());
}
/**
......
......@@ -24,8 +24,6 @@ public function form(array $form, FormStateInterface $form_state) {
/* @var \Drupal\workflows\WorkflowInterface $workflow */
$workflow = $this->entity;
$form['#title'] = $this->t('Edit %label workflow', ['%label' => $workflow->label()]);
$form['label'] = [
'#type' => 'textfield',
'#title' => $this->t('Label'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment