You are here

public function CropTypeDeleteForm::getQuestion in Crop API 8.2

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

1 call to CropTypeDeleteForm::getQuestion()
CropTypeDeleteForm::buildForm in src/Form/CropTypeDeleteForm.php
Form constructor.

File

src/Form/CropTypeDeleteForm.php, line 46

Class

CropTypeDeleteForm
Provides a form for crop type deletion.

Namespace

Drupal\crop\Form

Code

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