You are here

public function ReindexConfirm::getCancelText in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/src/Form/ReindexConfirm.php \Drupal\search\Form\ReindexConfirm::getCancelText()
  2. 9 core/modules/search/src/Form/ReindexConfirm.php \Drupal\search\Form\ReindexConfirm::getCancelText()

Returns a caption for the link which cancels the action.

Return value

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

Overrides ConfirmFormBase::getCancelText

File

core/modules/search/src/Form/ReindexConfirm.php, line 47

Class

ReindexConfirm
Provides the search reindex confirmation form.

Namespace

Drupal\search\Form

Code

public function getCancelText() {
  return $this
    ->t('Cancel');
}