You are here

public function UnitType::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_unit/src/Entity/UnitType.php, line 106
Contains \Drupal\bat_unit\Entity\UnitType.

Class

UnitType
Defines the Unit type entity.

Namespace

Drupal\bat_unit\Entity

Code

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