public function YamlForm::setOwner in YAML Form 8
Sets the entity owner's user entity.
Parameters
\Drupal\user\UserInterface $account: The owner user entity.
Return value
$this
Overrides EntityOwnerInterface::setOwner
File
- src/
Entity/ YamlForm.php, line 280
Class
- YamlForm
- Defines the form entity.
Namespace
Drupal\yamlform\EntityCode
public function setOwner(UserInterface $account) {
$this->uid = $account
->id();
return $this;
}