You are here

public function MenuLinkContent::isTranslatable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php \Drupal\menu_link_content\Plugin\Menu\MenuLinkContent::isTranslatable()

Returns whether this link can be translated.

Return value

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

Overrides MenuLinkBase::isTranslatable

File

core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php, line 238
Contains \Drupal\menu_link_content\Plugin\Menu\MenuLinkContent.

Class

MenuLinkContent
Provides the menu link plugin for content menu links.

Namespace

Drupal\menu_link_content\Plugin\Menu

Code

public function isTranslatable() {
  return $this
    ->getEntity()
    ->isTranslatable();
}