public function Link::deleteLink in Colossal Menu 8
Same name and namespace in other branches
- 2.x src/Entity/Link.php \Drupal\colossal_menu\Entity\Link::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 MenuLinkInterface::deleteLink
File
- src/
Entity/ Link.php, line 465
Class
- Link
- Defines the Link entity.
Namespace
Drupal\colossal_menu\EntityCode
public function deleteLink() {
return $this
->delete();
}