interface MenuLinkTranslatableInterface in Menu block current language 8
Defines an interface for exposing multilingual capabilities.
@package Drupal\menu_block_current_language
Hierarchy
- interface \Drupal\menu_block_current_language\MenuLinkTranslatableInterface
Expanded class hierarchy of MenuLinkTranslatableInterface
All classes that implement MenuLinkTranslatableInterface
File
- src/
MenuLinkTranslatableInterface.php, line 10
Namespace
Drupal\menu_block_current_languageView source
interface MenuLinkTranslatableInterface {
/**
* Determines if menu link has translation for current langauge.
*
* Menu link will be hidden if no translation is found.
*
* @param string $langcode
* The langcode.
*
* @return bool
* TRUE if menu link has a translation, FALSE if not.
*/
public function hasTranslation($langcode);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MenuLinkTranslatableInterface:: |
public | function | Determines if menu link has translation for current langauge. |