public function TypeGroup::setOwner in Booking and Availability Management Tools for Drupal 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/ TypeGroup.php, line 112 - Contains \Drupal\bat\Entity\TypeGroup.
Class
- TypeGroup
- Defines the Type Group entity.
Namespace
Drupal\bat\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('uid', $account
->id());
return $this;
}