You are here

public function Link::getTitle in Colossal Menu 2.x

Same name and namespace in other branches
  1. 8 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 293

Class

Link
Defines the Link entity.

Namespace

Drupal\colossal_menu\Entity

Code

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