You are here

public function EnvironmentIndicatorDeleteForm::getQuestion in Environment Indicator 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/EnvironmentIndicatorDeleteForm.php \Drupal\environment_indicator\Form\EnvironmentIndicatorDeleteForm::getQuestion()
  2. 4.x src/Form/EnvironmentIndicatorDeleteForm.php \Drupal\environment_indicator\Form\EnvironmentIndicatorDeleteForm::getQuestion()

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

lib/Drupal/environment_indicator/Form/EnvironmentIndicatorDeleteForm.php, line 28
Contains \Drupal\environment_indicator\Form\EnvironmentIndicatorDeleteForm.

Class

EnvironmentIndicatorDeleteForm
Provides a deletion confirmation form for environment_indicator environment.

Namespace

Drupal\environment_indicator\Form

Code

public function getQuestion() {
  return t('Are you sure you want to delete the environment indicator %title?', array(
    '%title' => $this->entity
      ->label(),
  ));
}