function MenuLinkMock::getDescription
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::getDescription()
- 8.9.x core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::getDescription()
- 10 core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::getDescription()
Overrides MenuLinkInterface::getDescription
File
-
core/
tests/ Drupal/ Tests/ Core/ Menu/ MenuLinkMock.php, line 57
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 '';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.