You are here

public function CustomPermsEntityDeleteForm::getConfirmText in Custom Permissions 8

Same name and namespace in other branches
  1. 8.2 src/Form/CustomPermsEntityDeleteForm.php \Drupal\config_perms\Form\CustomPermsEntityDeleteForm::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/CustomPermsEntityDeleteForm.php, line 31

Class

CustomPermsEntityDeleteForm
Builds the form to delete Custom perms entity entities.

Namespace

Drupal\config_perms\Form

Code

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