You are here

public function Registration::getOwner in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/Registration.php \Drupal\rng\Entity\Registration::getOwner()

Get the User object that owns this registration.

Return value

\Drupal\user\UserInterface The User object.

Overrides RegistrationInterface::getOwner

1 call to Registration::getOwner()
Registration::label in src/Entity/Registration.php
Gets the label of the entity.

File

src/Entity/Registration.php, line 158

Class

Registration
Defines the registration entity class.

Namespace

Drupal\rng\Entity

Code

public function getOwner() {
  return $this
    ->get('uid')->entity;
}