function MenuLinkContentDeleteForm::getDeletionMessage

Same name in other branches
  1. 9 core/modules/menu_link_content/src/Form/MenuLinkContentDeleteForm.php \Drupal\menu_link_content\Form\MenuLinkContentDeleteForm::getDeletionMessage()
  2. 10 core/modules/menu_link_content/src/Form/MenuLinkContentDeleteForm.php \Drupal\menu_link_content\Form\MenuLinkContentDeleteForm::getDeletionMessage()
  3. 11.x core/modules/menu_link_content/src/Form/MenuLinkContentDeleteForm.php \Drupal\menu_link_content\Form\MenuLinkContentDeleteForm::getDeletionMessage()

Overrides ContentEntityDeleteForm::getDeletionMessage

File

core/modules/menu_link_content/src/Form/MenuLinkContentDeleteForm.php, line 35

Class

MenuLinkContentDeleteForm
Provides a delete form for content menu links.

Namespace

Drupal\menu_link_content\Form

Code

protected function getDeletionMessage() {
    return $this->t('The menu link %title has been deleted.', [
        '%title' => $this->entity
            ->label(),
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.