You are here

public function MenuLinkMock::getDescription in Zircon Profile 8.0

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

Returns the description of the menu link.

Return value

string The description of the menu link.

Overrides MenuLinkInterface::getDescription

File

core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php, line 60
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 getDescription() {
  if ($this->pluginDefinition['description']) {
    return $this->pluginDefinition['description'];
  }
  return '';
}