You are here

public function ReindexConfirm::getConfirmText in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/search/src/Form/ReindexConfirm.php \Drupal\search\Form\ReindexConfirm::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

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

Class

ReindexConfirm
Provides the search reindex confirmation form.

Namespace

Drupal\search\Form

Code

public function getConfirmText() {
  return $this
    ->t('Re-index site');
}