public function SiteSettingEntity::setOwner in Site Settings and Labels 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/ SiteSettingEntity.php, line 163
Class
- SiteSettingEntity
- Defines the Site Setting entity.
Namespace
Drupal\site_settings\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('user_id', $account
->id());
return $this;
}