You are here

public function TokenAuthUser::setRevisionTranslationAffectedEnforced in Simple OAuth (OAuth2) & OpenID Connect 8

Same name and namespace in other branches
  1. 8.4 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::setRevisionTranslationAffectedEnforced()
  2. 8.3 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::setRevisionTranslationAffectedEnforced()
  3. 5.x src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::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

Overrides TranslatableRevisionableInterface::setRevisionTranslationAffectedEnforced

See also

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

File

src/Authentication/TokenAuthUser.php, line 872

Class

TokenAuthUser
Class TokenAuthUser.

Namespace

Drupal\simple_oauth\Authentication

Code

public function setRevisionTranslationAffectedEnforced($enforced) {
  return $this->subject
    ->setRevisionTranslationAffectedEnforced($enforced);
}