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
1 2 3 4 5 6 7 | public function setRevisionTranslationAffected( $affected ) { $field_name = 'revision_translation_affected' ; if ( $this ->hasField( $field_name )) { $this ->set( $field_name , $affected ); } return $this ; } |
Please login to continue.