You are here

public function IndexDeleteForm::getConfirmText in Elasticsearch Connector 8

Same name and namespace in other branches
  1. 8.7 src/Form/IndexDeleteForm.php \Drupal\elasticsearch_connector\Form\IndexDeleteForm::getConfirmText()
  2. 8.2 src/Form/IndexDeleteForm.php \Drupal\elasticsearch_connector\Form\IndexDeleteForm::getConfirmText()
  3. 8.5 src/Form/IndexDeleteForm.php \Drupal\elasticsearch_connector\Form\IndexDeleteForm::getConfirmText()
  4. 8.6 src/Form/IndexDeleteForm.php \Drupal\elasticsearch_connector\Form\IndexDeleteForm::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/IndexDeleteForm.php, line 50
Contains \Drupal\elasticsearch_connector\Form\IndexDeleteForm.

Class

IndexDeleteForm
Defines a confirmation form for deletion of a custom menu.

Namespace

Drupal\elasticsearch_connector\Form

Code

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