You are here

public function ContentEntityBase::isDefaultTranslation in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\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

1 call to ContentEntityBase::isDefaultTranslation()
ContentEntityBase::onChange in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Reacts to changes to a field.

File

core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 327
Contains \Drupal\Core\Entity\ContentEntityBase.

Class

ContentEntityBase
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

public function isDefaultTranslation() {
  return $this->activeLangcode === LanguageInterface::LANGCODE_DEFAULT;
}