ContentEntityBase::$enforceDefaultTranslation
Same name in other branches
- 11.x 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\EntityCode
protected ?bool $enforceDefaultTranslation = NULL;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.