public function Link::getParent in Colossal Menu 8
Same name and namespace in other branches
- 2.x src/Entity/Link.php \Drupal\colossal_menu\Entity\Link::getParent()
Returns the plugin ID of the menu link's parent, or an empty string.
Return value
string The parent plugin ID.
Overrides MenuLinkInterface::getParent
1 call to Link::getParent()
- Link::postSave in src/
Entity/ Link.php - Update the link tree.
File
- src/
Entity/ Link.php, line 348
Class
- Link
- Defines the Link entity.
Namespace
Drupal\colossal_menu\EntityCode
public function getParent() {
return $this
->get('parent')->entity;
}