Unverified Commit b3aa5534 authored by larowlan's avatar larowlan

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

parent e7d43505
......@@ -4,7 +4,7 @@ dependencies:
module:
- content_moderation
id: editorial
label: 'Editorial workflow'
label: 'Editorial'
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';
public $invalidStateMessage = 'State %state does not exist on %workflow workflow';
}
......@@ -123,7 +123,7 @@ public function testDeletingStateViaConfiguration() {
$error_log = $this->configImporter->getErrors();
$expected = [
'The moderation state Test two is being used, but is not in the source storage.',
'The workflow Editorial workflow is being used, and cannot be deleted.',
'The workflow Editorial is being used, and cannot be deleted.',
];
$this->assertEqual($expected, $error_log);
}
......
......@@ -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 workflow</em>', $violations->get(0)->getMessage());
$this->assertEquals('State <em class="placeholder">invalid_state</em> does not exist on <em class="placeholder">Editorial</em> workflow', $violations->get(0)->getMessage());
}
/**
......
......@@ -24,6 +24,8 @@ 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