public function ContentEntityBase::isDefaultTranslation
public ContentEntityBase::isDefaultTranslation()
Checks whether the translation is the default one.
Return value
bool TRUE if the translation is the default one, FALSE otherwise.
Overrides TranslatableInterface::isDefaultTranslation
File
- core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 324
Class
- ContentEntityBase
- Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\EntityCode
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