You are here

public function MenuLinkMock::getTitle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::getTitle()

Returns the localized title to be shown for this link.

Return value

string The title of the menu link.

Overrides MenuLinkInterface::getTitle

1 method overrides MenuLinkMock::getTitle()
DynamicMenuLinkMock::getTitle in core/tests/Drupal/Tests/Core/Menu/DynamicMenuLinkMock.php
Returns the localized title to be shown for this link.

File

core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php, line 53
Contains \Drupal\Tests\Core\Menu\MenuLinkMock.

Class

MenuLinkMock
Defines a mock implementation of a menu link used in tests only.

Namespace

Drupal\Tests\Core\Menu

Code

public function getTitle() {
  return $this->pluginDefinition['title'];
}