public function Event::getOwner in Booking and Availability Management Tools for Drupal 8
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- modules/
bat_event/ src/ Entity/ Event.php, line 91 - Contains \Drupal\bat_event\Entity\Event.
Class
- Event
- Defines the Event entity.
Namespace
Drupal\bat_event\EntityCode
public function getOwner() {
return $this
->get('uid')->entity;
}