public function EventSeries::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
- modules/
bat_event_series/ src/ Entity/ EventSeries.php, line 104 - Contains \Drupal\bat_event_series\Entity\EventSeries.
Class
- EventSeries
- Defines the Event Series entity.
Namespace
Drupal\bat_event_series\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('uid', $account
->id());
return $this;
}