public function Unit::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_unit/ src/ Entity/ Unit.php, line 87 - Contains \Drupal\bat_unit\Entity\Unit.
Class
- Unit
- Defines the Unit entity.
Namespace
Drupal\bat_unit\EntityCode
public function getOwner() {
return $this
->get('uid')->entity;
}