You are here

public function JsonapiResourceConfigDeleteForm::getConfirmText in JSON:API Extras 8

Same name and namespace in other branches
  1. 8.3 src/Form/JsonapiResourceConfigDeleteForm.php \Drupal\jsonapi_extras\Form\JsonapiResourceConfigDeleteForm::getConfirmText()
  2. 8.2 src/Form/JsonapiResourceConfigDeleteForm.php \Drupal\jsonapi_extras\Form\JsonapiResourceConfigDeleteForm::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/JsonapiResourceConfigDeleteForm.php, line 31

Class

JsonapiResourceConfigDeleteForm
Builds the form to delete JSON API Resource Config entities.

Namespace

Drupal\jsonapi_extras\Form

Code

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