public function PollChoiceTranslationMetadataWrapper::setAuthor in Poll 8
Sets the translation author.
The metadata field will be updated, only if it's translatable.
Parameters
\Drupal\user\UserInterface $account: The translation author user entity.
Return value
$this
Overrides ContentTranslationMetadataWrapper::setAuthor
File
- src/
PollChoiceTranslationMetadataWrapper.php, line 51
Class
- PollChoiceTranslationMetadataWrapper
- Base class for content translation metadata wrappers.
Namespace
Drupal\pollCode
public function setAuthor(UserInterface $account) {
return $this;
}