function ViewsMenuLink::getDescription

Same name in other branches
  1. 9 core/modules/views/src/Plugin/Menu/ViewsMenuLink.php \Drupal\views\Plugin\Menu\ViewsMenuLink::getDescription()
  2. 8.9.x core/modules/views/src/Plugin/Menu/ViewsMenuLink.php \Drupal\views\Plugin\Menu\ViewsMenuLink::getDescription()
  3. 11.x core/modules/views/src/Plugin/Menu/ViewsMenuLink.php \Drupal\views\Plugin\Menu\ViewsMenuLink::getDescription()

Overrides MenuLinkInterface::getDescription

File

core/modules/views/src/Plugin/Menu/ViewsMenuLink.php, line 118

Class

ViewsMenuLink
Defines menu links provided by views.

Namespace

Drupal\views\Plugin\Menu

Code

public function getDescription() {
    return $this->loadView()->display_handler
        ->getOption('menu')['description'];
}

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