diff --git a/core/modules/filter/src/FilterFormatListBuilder.php b/core/modules/filter/src/FilterFormatListBuilder.php index 8f46cbc..bb74558 100644 --- a/core/modules/filter/src/FilterFormatListBuilder.php +++ b/core/modules/filter/src/FilterFormatListBuilder.php @@ -126,6 +126,11 @@ public function getDefaultOperations(EntityInterface $entity) { $operations['edit']['title'] = $this->t('Configure'); } + // Change operation label to Delete which more reliable for user. + if ($entity->hasLinkTemplate('disable')) { + $operations['disable']['title'] = t('Delete'); + } + // The fallback format may not be disabled. if ($entity->isFallbackFormat()) { unset($operations['disable']); diff --git a/core/modules/filter/src/Form/FilterDisableForm.php b/core/modules/filter/src/Form/FilterDisableForm.php index 5795d8f..e837406 100644 --- a/core/modules/filter/src/Form/FilterDisableForm.php +++ b/core/modules/filter/src/Form/FilterDisableForm.php @@ -20,7 +20,7 @@ class FilterDisableForm extends EntityConfirmFormBase { * {@inheritdoc} */ public function getQuestion() { - return $this->t('Are you sure you want to disable the text format %format?', array('%format' => $this->entity->label())); + return $this->t('Are you sure you want to delete the text format %format?', array('%format' => $this->entity->label())); } /** @@ -34,14 +34,14 @@ public function getCancelUrl() { * {@inheritdoc} */ public function getConfirmText() { - return $this->t('Disable'); + return $this->t('Delete'); } /** * {@inheritdoc} */ public function getDescription() { - return $this->t('Disabled text formats are completely removed from the administrative interface, and any content stored with that format will not be displayed. This action cannot be undone.'); + return $this->t('Deleted text formats are completely removed from the administrative interface, and any content stored with that format will not be displayed. This action cannot be undone.'); } /**