public function MenuLinkMock::getDescription in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\MenuCode
public function getDescription() {
if ($this->pluginDefinition['description']) {
return $this->pluginDefinition['description'];
}
return '';
}