Commit ac5ccef9 authored by alexpott's avatar alexpott

Issue #2818267 by vanessakovalsky, timmillwood, shashikant_chauhan, Sam152:...

Issue #2818267 by vanessakovalsky, timmillwood, shashikant_chauhan, Sam152: Remove delete link from Manage moderation settings page
parent bb55292a
......@@ -139,4 +139,17 @@ public function save(array $form, FormStateInterface $form_state) {
}
}
/**
* {@inheritdoc}
*/
protected function actions(array $form, FormStateInterface $form_state) {
$actions['submit'] = [
'#type' => 'submit',
'#value' => $this->t('Save'),
'#submit' => ['::submitForm', '::save'],
];
return $actions;
}
}
......@@ -50,6 +50,7 @@ public function testEnablingOnExistingContent() {
$this->assertLinkByHref('admin/structure/types/manage/not_moderated/moderation');
$this->drupalGet('admin/structure/types/manage/not_moderated/moderation');
$this->assertOptionSelected('edit-workflow', '');
$this->assertNoLink('Delete');
$edit['workflow'] = 'editorial';
$this->drupalPostForm(NULL, $edit, t('Save'));
......
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