/** * {@inheritdoc} */ public function setAuthor(UserInterface $account) { if ($this->translation->hasField('content_translation_uid')) { $this->translation->set('content_translation_uid', $account->id()); } else { $this->translation->setOwner($account); } return $this; }