You are here

public function MenuLinkDefault::getDescription in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::getDescription()

Returns the description of the menu link.

Return value

string The description of the menu link.

Overrides MenuLinkInterface::getDescription

File

core/lib/Drupal/Core/Menu/MenuLinkDefault.php, line 71

Class

MenuLinkDefault
Provides a default implementation for menu link plugins.

Namespace

Drupal\Core\Menu

Code

public function getDescription() {
  return (string) $this->pluginDefinition['description'];
}