You are here

public function TranslatableRevisionableInterface::setRevisionTranslationAffectedEnforced in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/TranslatableRevisionableInterface.php \Drupal\Core\Entity\TranslatableRevisionableInterface::setRevisionTranslationAffectedEnforced()
  2. 10 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()

1 method overrides TranslatableRevisionableInterface::setRevisionTranslationAffectedEnforced()
ContentEntityBase::setRevisionTranslationAffectedEnforced in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Enforces the revision translation affected flag value.

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);