You are here

public function ViewsMenuLink::getDescription in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/Menu/ViewsMenuLink.php \Drupal\views\Plugin\Menu\ViewsMenuLink::getDescription()

Returns the description of the menu link.

Return value

string The description of the menu link.

Overrides MenuLinkInterface::getDescription

File

core/modules/views/src/Plugin/Menu/ViewsMenuLink.php, line 126
Contains \Drupal\views\Plugin\Menu\ViewsMenuLink.

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'];
}