You are here

public function Registration::setOwnerId in RNG - Events and Registrations 8.2

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

Set the owner of this registration by UID.

Parameters

int $uid: The User ID.

Return value

\Drupal\rng\Entity\RegistrationInterface Returns registration for chaining.

Overrides RegistrationInterface::setOwnerId

File

src/Entity/Registration.php, line 180

Class

Registration
Defines the registration entity class.

Namespace

Drupal\rng\Entity

Code

public function setOwnerId($uid) {
  $this
    ->set('uid', $uid);
  return $this;
}