You are here

public function TaxonomyMenuDeleteForm::getQuestion in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 modules/taxonomy_menu/src/Form/TaxonomyMenuDeleteForm.php \Drupal\taxonomy_menu\Form\TaxonomyMenuDeleteForm::getQuestion()

Returns the question to ask the user.

Return value

string The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

modules/taxonomy_menu/src/Form/TaxonomyMenuDeleteForm.php, line 21
Contains Drupal\taxonomy_menu\Form\TaxonomyMenuDeleteForm.

Class

TaxonomyMenuDeleteForm
Builds the form to delete a TaxonomyMenu.

Namespace

Drupal\taxonomy_menu\Form

Code

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