You are here

public function TaxonomyMenuMenuLink::getDescription in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 modules/taxonomy_menu/src/Plugin/Menu/TaxonomyMenuMenuLink.php \Drupal\taxonomy_menu\Plugin\Menu\TaxonomyMenuMenuLink::getDescription()

Returns the description of the menu link.

Return value

string The description of the menu link.

Overrides MenuLinkInterface::getDescription

File

modules/taxonomy_menu/src/Plugin/Menu/TaxonomyMenuMenuLink.php, line 87
Contains \Drupal\taxonomy_menu\Plugin\Menu\TaxonomyMenuMenuLink.

Class

TaxonomyMenuMenuLink
Defines menu links provided by taxonomy menu.

Namespace

Drupal\taxonomy_menu\Plugin\Menu

Code

public function getDescription() {
  return $this->entityManager
    ->getStorage('taxonomy_term')
    ->load($this->pluginDefinition['metadata']['taxonomy_term_id'])
    ->getDescription();
}