You are here

public function Booking::setOwnerId in Booking and Availability Management Tools for Drupal 8

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

modules/bat_booking/src/Entity/Booking.php, line 78
Contains \Drupal\bat_booking\Entity\Booking.

Class

Booking
Defines the Booking entity.

Namespace

Drupal\bat_booking\Entity

Code

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