function MenuLinkContentInterface::getParentId
Same name in other branches
- 8.9.x core/modules/menu_link_content/src/MenuLinkContentInterface.php \Drupal\menu_link_content\MenuLinkContentInterface::getParentId()
- 10 core/modules/menu_link_content/src/MenuLinkContentInterface.php \Drupal\menu_link_content\MenuLinkContentInterface::getParentId()
- 11.x core/modules/menu_link_content/src/MenuLinkContentInterface.php \Drupal\menu_link_content\MenuLinkContentInterface::getParentId()
Gets the plugin ID of the parent menu link.
Return value
string A plugin ID, or empty string if this link is at the top level.
1 method overrides MenuLinkContentInterface::getParentId()
- MenuLinkContent::getParentId in core/
modules/ menu_link_content/ src/ Entity/ MenuLinkContent.php - Gets the plugin ID of the parent menu link.
File
-
core/
modules/ menu_link_content/ src/ MenuLinkContentInterface.php, line 82
Class
- MenuLinkContentInterface
- Defines an interface for custom menu links.
Namespace
Drupal\menu_link_contentCode
public function getParentId();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.