You are here

public function TaxonomyMenuMenuLink::getTitle in Zircon Profile 8.0

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

Returns the localized title to be shown for this link.

Return value

string The title of the menu link.

Overrides MenuLinkInterface::getTitle

File

modules/taxonomy_menu/src/Plugin/Menu/TaxonomyMenuMenuLink.php, line 80
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 getTitle() {
  return $this->entityManager
    ->getStorage('taxonomy_term')
    ->load($this->pluginDefinition['metadata']['taxonomy_term_id'])
    ->label();
}