Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MenuLinkInterface.php

function 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.
4 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.
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 37

Class

MenuLinkInterface
Defines an interface for classes providing a type of menu link.

Namespace

Drupal\Core\Menu

Code

public function getDescription();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal