You are here

public function Event::setOwnerId in Event 8

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

src/Entity/Event.php, line 195

Class

Event
Defines the Event entity.

Namespace

Drupal\event\Entity

Code

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