You are here

public function LinkConfigurationStorageDeleteForm::getQuestion in Menu Token 9.1.x

Same name and namespace in other branches
  1. 8 src/Form/LinkConfigurationStorageDeleteForm.php \Drupal\menu_token\Form\LinkConfigurationStorageDeleteForm::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/LinkConfigurationStorageDeleteForm.php, line 17

Class

LinkConfigurationStorageDeleteForm
Builds the form to delete Link configuration storage entities.

Namespace

Drupal\menu_token\Form

Code

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