/**
  * {@inheritdoc}
  */
 public function setChangedTime($timestamp)
 {
     $field_name = $this->translation->hasField('content_translation_changed') ? 'content_translation_changed' : 'changed';
     $this->translation->set($field_name, $timestamp);
     return $this;
 }
 /**
  * Updates a field value, only if the field is translatable.
  *
  * @param string $field_name
  *   The name of the field.
  * @param mixed $value
  *   The field value to be set.
  */
 protected function setFieldOnlyIfTranslatable($field_name, $value)
 {
     if ($this->translation->getFieldDefinition($field_name)->isTranslatable()) {
         $this->translation->set($field_name, $value);
     }
 }