You are here

public function ViewsMenuLink::deleteLink in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/Menu/ViewsMenuLink.php \Drupal\views\Plugin\Menu\ViewsMenuLink::deleteLink()

Deletes a menu link.

In general, this method should not be called directly, but will be called automatically from MenuLinkManagerInterface::removeDefinition().

This method will only delete the link from any additional storage, but not from the plugin.manager.menu.link service.

Throws

\Drupal\Component\Plugin\Exception\PluginException If the link is not deletable.

Overrides MenuLinkBase::deleteLink

File

core/modules/views/src/Plugin/Menu/ViewsMenuLink.php, line 166

Class

ViewsMenuLink
Defines menu links provided by views.

Namespace

Drupal\views\Plugin\Menu

Code

public function deleteLink() {
}