public ContentEntityBase::isDefaultTranslation()
Checks whether the translation is the default one.
bool TRUE if the translation is the default one, FALSE otherwise.
Overrides TranslatableInterface::isDefaultTranslation
public function isDefaultTranslation() { return $this->activeLangcode === LanguageInterface::LANGCODE_DEFAULT; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!ContentEntityBase.php/function/ContentEntityBase::isDefaultTranslation/8.1.x