You are here

public function MenuLinkContent::isTranslatable in Drupal 9

Same name and namespace in other branches
  1. 8 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 244

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();
}