You are here

public function ApiKeyDeleteForm::getConfirmText in Services API Key Authentication 8

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/ApiKeyDeleteForm.php, line 35
Contains \Drupal\api_key_auth\Form\ApiKeyDeleteForm.

Class

ApiKeyDeleteForm
Builds the form to delete Api key entities.

Namespace

Drupal\services_api_key_auth\Form

Code

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