public function ContentEntityBase::setRevisionTranslationAffected

public ContentEntityBase::setRevisionTranslationAffected($affected)

Marks the current revision translation as affected.

Parameters

bool|null $affected: The flag value. A NULL value can be specified to reset the current value and make sure a new value will be computed by the system.

Return value

$this

Overrides ContentEntityInterface::setRevisionTranslationAffected

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

public function setRevisionTranslationAffected($affected) {
  $field_name = 'revision_translation_affected';
  if ($this->hasField($field_name)) {
    $this->set($field_name, $affected);
  }
  return $this;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!ContentEntityBase.php/function/ContentEntityBase::setRevisionTranslationAffected/8.1.x