You are here

public function RobotDeleteForm::getConfirmText in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 config_entity_example/src/Form/RobotDeleteForm.php \Drupal\config_entity_example\Form\RobotDeleteForm::getConfirmText()

Gather the confirmation text.

The confirm text is used as the text in the button that confirms the question posed by getQuestion().

Return value

string Translated string.

Overrides EntityConfirmFormBase::getConfirmText

File

modules/config_entity_example/src/Form/RobotDeleteForm.php, line 47

Class

RobotDeleteForm
Class RobotDeleteForm.

Namespace

Drupal\config_entity_example\Form

Code

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