You are here

interface MenuLinkTranslatableInterface in Menu block current language 8

Defines an interface for exposing multilingual capabilities.

@package Drupal\menu_block_current_language

Hierarchy

Expanded class hierarchy of MenuLinkTranslatableInterface

All classes that implement MenuLinkTranslatableInterface

File

src/MenuLinkTranslatableInterface.php, line 10

Namespace

Drupal\menu_block_current_language
View 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

Namesort descending Modifiers Type Description Overrides
MenuLinkTranslatableInterface::hasTranslation public function Determines if menu link has translation for current langauge.