diff --git a/core/modules/image/src/Form/ImageStyleEditForm.php b/core/modules/image/src/Form/ImageStyleEditForm.php index 6bf8dd9013a..c166bb8fb03 100644 --- a/core/modules/image/src/Form/ImageStyleEditForm.php +++ b/core/modules/image/src/Form/ImageStyleEditForm.php @@ -257,16 +257,6 @@ class ImageStyleEditForm extends ImageStyleFormBase { $this->messenger()->addStatus($this->t('Changes to the style have been saved.')); } - /** - * {@inheritdoc} - */ - public function actions(array $form, FormStateInterface $form_state) { - $actions = parent::actions($form, $form_state); - $actions['submit']['#value'] = $this->t('Update style'); - - return $actions; - } - /** * Updates image effect weights. * diff --git a/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php b/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php index f744554e158..f026807656d 100644 --- a/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php +++ b/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php @@ -199,7 +199,7 @@ class ImageAdminStylesTest extends ImageFieldTestBase { $image_path = $this->createSampleImage($style); $this->assertEqual($this->getImageCount($style), 1, format_string('Image style %style image %file successfully generated.', ['%style' => $style->label(), '%file' => $image_path])); - $this->drupalPostForm($style_path, $edit, t('Update style')); + $this->drupalPostForm($style_path, $edit, t('Save')); // Note that after changing the style name, the style path is changed. $style_path = 'admin/config/media/image-styles/manage/' . $style_name; @@ -337,7 +337,7 @@ class ImageAdminStylesTest extends ImageFieldTestBase { 'name' => $new_style_name, 'label' => $new_style_label, ]; - $this->drupalPostForm($style_path . $style_name, $edit, t('Update style')); + $this->drupalPostForm($style_path . $style_name, $edit, t('Save')); $this->assertText(t('Changes to the style have been saved.'), format_string('Style %name was renamed to %new_name.', ['%name' => $style_name, '%new_name' => $new_style_name])); $this->drupalGet('node/' . $nid); diff --git a/core/modules/image/tests/src/Functional/ImageStyleFlushTest.php b/core/modules/image/tests/src/Functional/ImageStyleFlushTest.php index 070f199982f..169bfa01f82 100644 --- a/core/modules/image/tests/src/Functional/ImageStyleFlushTest.php +++ b/core/modules/image/tests/src/Functional/ImageStyleFlushTest.php @@ -103,7 +103,7 @@ class ImageStyleFlushTest extends ImageFieldTestBase { } $this->drupalPostForm($style_path . '/effects/' . $uuids['image_scale'] . '/delete', [], t('Delete')); $this->assertResponse(200); - $this->drupalPostForm($style_path, [], t('Update style')); + $this->drupalPostForm($style_path, [], t('Save')); $this->assertResponse(200); // Post flush, expected 1 image in the 'public' wrapper (sample.png).