You are here

public function MenuLinkConfig::isTranslatable in Config menu link 8

Returns whether this link can be translated.

Return value

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

Overrides MenuLinkContent::isTranslatable

File

src/Plugin/Menu/MenuLinkConfig.php, line 186
Contains \Drupal\menu_link_config\Plugin\Menu\MenuLinkConfig.

Class

MenuLinkConfig
Provides a menu link plugin based upon storage in config.

Namespace

Drupal\menu_link_config\Plugin\Menu

Code

public function isTranslatable() {

  // @todo Injecting the module handler for a proper moduleExists() check
  //   might be a bit cleaner.
  return (bool) $this->mapperManager;
}