You are here

public function EnvironmentIndicatorDeleteForm::getQuestion in Environment Indicator 8.3

Same name and namespace in other branches
  1. 8.2 lib/Drupal/environment_indicator/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

src/Form/EnvironmentIndicatorDeleteForm.php, line 28

Class

EnvironmentIndicatorDeleteForm
Provides a deletion confirmation form for environment_indicator environment.

Namespace

Drupal\environment_indicator\Form

Code

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