Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/TranslatableRevisionableInterface.php \Drupal\Core\Entity\TranslatableRevisionableInterface::setRevisionTranslationAffectedEnforced()
  2. 9 core/lib/Drupal/Core/Entity/TranslatableRevisionableInterface.php \Drupal\Core\Entity\TranslatableRevisionableInterface::setRevisionTranslationAffectedEnforced()

Enforces the revision translation affected flag value.

Note that this method call will not have any influence on the storage if the value of the revision translation affected flag is NULL which is used as an indication for the storage to recompute the flag.

@internal

Parameters

bool $enforced: If TRUE, the value of the revision translation affected flag will be enforced so that on entity save the entity storage will not recompute it. Otherwise the storage will recompute it.

Return value

$this

See also

\Drupal\Core\Entity\ContentEntityInterface::setRevisionTranslationAffected()

File

core/lib/Drupal/Core/Entity/TranslatableRevisionableInterface.php, line 72

Class

TranslatableRevisionableInterface
Provides methods for an entity to support revision translation.

Namespace

Drupal\Core\Entity

Code

public function setRevisionTranslationAffectedEnforced($enforced);