MenuLinkBase::isTranslatable

public MenuLinkBase::isTranslatable()

Returns whether this link can be translated.

Return value

bool TRUE if the link can be translated, FALSE otherwise.

Overrides MenuLinkInterface::isTranslatable

File

core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 80

Class

MenuLinkBase
Defines a base menu link class.

Namespace

Drupal\Core\Menu

Code

public function isTranslatable() {
  return (bool) $this->getTranslateRoute();
}
doc_Drupal
2016-10-29 09:26:26
Comments
Leave a Comment

Please login to continue.