public function MenuDeleteItem::getQuestion in Menu Delete 8
Same name and namespace in other branches
- 8.2 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\FormCode
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?');
}