You are here

public function MenuDeleteItem::getQuestion in Menu Delete 8.2

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

Class

MenuDeleteItem
Class MenuDeleteItem.

Namespace

Drupal\menu_delete\Form

Code

public function getQuestion() {
  return $this
    ->formatPlural(count($this->menuItems), 'Are you sure you want to delete this item?', 'Are you sure you want to delete these items?');
}