public function MenuLinkBase::isDeletable in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::isDeletable()
Returns whether this link can be deleted.
Return value
bool TRUE if the link can be deleted, FALSE otherwise.
Overrides MenuLinkInterface::isDeletable
3 methods override MenuLinkBase::isDeletable()
- MenuLinkContent::isDeletable in core/
modules/ menu_link_content/ src/ Plugin/ Menu/ MenuLinkContent.php - Returns whether this link can be deleted.
- TaxonomyMenuMenuLink::isDeletable in modules/
taxonomy_menu/ src/ Plugin/ Menu/ TaxonomyMenuMenuLink.php - Returns whether this link can be deleted.
- ViewsMenuLink::isDeletable in core/
modules/ views/ src/ Plugin/ Menu/ ViewsMenuLink.php - Returns whether this link can be deleted.
File
- core/
lib/ Drupal/ Core/ Menu/ MenuLinkBase.php, line 92 - Contains \Drupal\Core\Menu\MenuLinkBase.
Class
- MenuLinkBase
- Defines a base menu link class.
Namespace
Drupal\Core\MenuCode
public function isDeletable() {
return (bool) $this
->getDeleteRoute();
}