You are here

public function MenuLinkContentMultilingual::getTranslationLanguages in Menu Multilingual 8

Retrieve the languages from translations of the menu link.

Return value

string The language ids.

Throws

\Drupal\Component\Plugin\Exception\PluginException

File

src/Plugin/Menu/MenuLinkContentMultilingual.php, line 40

Class

MenuLinkContentMultilingual
Provides the menu link plugin for content menu links.

Namespace

Drupal\menu_multilingual\Plugin\Menu

Code

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