function MenuLinkDefault::getDescription

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::getDescription()
  2. 8.9.x core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::getDescription()
  3. 11.x core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::getDescription()

Overrides MenuLinkInterface::getDescription

File

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

Class

MenuLinkDefault
Provides a default implementation for menu link plugins.

Namespace

Drupal\Core\Menu

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.