You are here

public function MenuLinkTranslatableInterface::hasTranslation in Menu block current language 8

Determines if menu link has translation for current langauge.

Menu link will be hidden if no translation is found.

Parameters

string $langcode: The langcode.

Return value

bool TRUE if menu link has a translation, FALSE if not.

File

src/MenuLinkTranslatableInterface.php, line 23

Class

MenuLinkTranslatableInterface
Defines an interface for exposing multilingual capabilities.

Namespace

Drupal\menu_block_current_language

Code

public function hasTranslation($langcode);