You are here

public function PageVariantDeleteForm::getConfirmText in Page Manager 8

Same name and namespace in other branches
  1. 8.4 page_manager_ui/src/Form/PageVariantDeleteForm.php \Drupal\page_manager_ui\Form\PageVariantDeleteForm::getConfirmText()

Returns a caption for the button that confirms the action.

Return value

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

Overrides ConfirmFormBase::getConfirmText

File

page_manager_ui/src/Form/PageVariantDeleteForm.php, line 84
Contains Drupal\page_manager_ui\Form\PageVariantDeleteForm.

Class

PageVariantDeleteForm
Builds the form to delete a PageVariant.

Namespace

Drupal\page_manager_ui\Form

Code

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