TranslatableInterface

Interface for translatable data.

Hierarchy

File

core/lib/Drupal/Core/TypedData/TranslatableInterface.php, line 8

Namespace

Drupal\Core\TypedData

Members

Name Modifiers Type Description
TranslatableInterface::addTranslation public function Adds a new translation to the translatable object.
TranslatableInterface::getTranslation public function Gets a translation of the data.
TranslatableInterface::getTranslationLanguages public function Returns the languages the data is translated to.
TranslatableInterface::getUntranslated public function Returns the translatable object referring to the original language.
TranslatableInterface::hasTranslation public function Returns TRUE there is a translation for the given language code.
TranslatableInterface::isDefaultTranslation public function Checks whether the translation is the default one.
TranslatableInterface::isNewTranslation public function Checks whether the translation is new.
TranslatableInterface::isTranslatable public function Returns the translation support status.
TranslatableInterface::language public function Returns the translation language.
TranslatableInterface::removeTranslation public function Removes the translation identified by the given language code.
doc_Drupal
2016-10-29 09:49:00
Comments
Leave a Comment

Please login to continue.