You are here

public function UserDefaultPageConfigEntityDeleteForm::getConfirmText in User Default Page 8

Same name and namespace in other branches
  1. 8.2 src/Form/UserDefaultPageConfigEntityDeleteForm.php \Drupal\user_default_page\Form\UserDefaultPageConfigEntityDeleteForm::getConfirmText()

Returns a caption for the button that confirms the action.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.

Overrides EntityConfirmFormBase::getConfirmText

File

src/Form/UserDefaultPageConfigEntityDeleteForm.php, line 31

Class

UserDefaultPageConfigEntityDeleteForm
Builds the form to delete User default page entities.

Namespace

Drupal\user_default_page\Form

Code

public function getConfirmText() {
  return $this
    ->t('Delete');
}