function MenuLinkMock::getTitle

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::getTitle()
  2. 10 core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::getTitle()
  3. 11.x core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::getTitle()

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 48

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'];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.