You are here

public function Link::getTitle in Colossal Menu 8

Same name and namespace in other branches
  1. 2.x src/Entity/Link.php \Drupal\colossal_menu\Entity\Link::getTitle()

Returns the localized title to be shown for this link.

Return value

string The title of the menu link.

Overrides MenuLinkInterface::getTitle

File

src/Entity/Link.php, line 313

Class

Link
Defines the Link entity.

Namespace

Drupal\colossal_menu\Entity

Code

public function getTitle() {
  return $this
    ->get('title')->value;
}