You are here

public function MenuLinkField::getDescription in Menu Link (Field) 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Menu/MenuLinkField.php \Drupal\menu_link\Plugin\Menu\MenuLinkField::getDescription()

Returns the description of the menu link.

Return value

string The description of the menu link.

Overrides MenuLinkInterface::getDescription

1 call to MenuLinkField::getDescription()
MenuLinkField::getUrlObject in src/Plugin/Menu/MenuLinkField.php
Returns a URL object containing either the external path or route.

File

src/Plugin/Menu/MenuLinkField.php, line 131

Class

MenuLinkField
Provides a menu link plugin for field-based menu links.

Namespace

Drupal\menu_link\Plugin\Menu

Code

public function getDescription() {
  return $this
    ->getProperty('description');
}