ContentEntityBase::$enforceDefaultTranslation

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::enforceDefaultTranslation

Override the result of isDefaultTranslation().

Under certain circumstances, such as when changing default translation, the default value needs to be overridden.

@internal

Type: bool|null

File

core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 99

Class

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

Namespace

Drupal\Core\Entity

Code

protected ?bool $enforceDefaultTranslation = NULL;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.