function MenuLinkInterface::getDescription
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Menu/MenuLinkInterface.php \Drupal\Core\Menu\MenuLinkInterface::getDescription()
- 10 core/lib/Drupal/Core/Menu/MenuLinkInterface.php \Drupal\Core\Menu\MenuLinkInterface::getDescription()
- 11.x core/lib/Drupal/Core/Menu/MenuLinkInterface.php \Drupal\Core\Menu\MenuLinkInterface::getDescription()
Returns the description of the menu link.
Return value
string The description of the menu link.
1 call to MenuLinkInterface::getDescription()
- MenuLinkBase::getUrlObject in core/
lib/ Drupal/ Core/ Menu/ MenuLinkBase.php - Returns a URL object containing either the external path or route.
5 methods override MenuLinkInterface::getDescription()
- InaccessibleMenuLink::getDescription in core/
lib/ Drupal/ Core/ Menu/ InaccessibleMenuLink.php - Returns the description of the menu link.
- MenuLinkContent::getDescription in core/
modules/ menu_link_content/ src/ Plugin/ Menu/ MenuLinkContent.php - Returns the description of the menu link.
- MenuLinkDefault::getDescription in core/
lib/ Drupal/ Core/ Menu/ MenuLinkDefault.php - Returns the description of the menu link.
- MenuLinkMock::getDescription in core/
tests/ Drupal/ Tests/ Core/ Menu/ MenuLinkMock.php - Returns the description of the menu link.
- ViewsMenuLink::getDescription in core/
modules/ views/ src/ Plugin/ Menu/ ViewsMenuLink.php - Returns the description of the menu link.
File
-
core/
lib/ Drupal/ Core/ Menu/ MenuLinkInterface.php, line 36
Class
- MenuLinkInterface
- Defines an interface for classes providing a type of menu link.
Namespace
Drupal\Core\MenuCode
public function getDescription();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.