You are here

public function MaestroProductionAssignments::setOwnerId in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/MaestroProductionAssignments.php \Drupal\maestro\Entity\MaestroProductionAssignments::setOwnerId()

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

src/Entity/MaestroProductionAssignments.php, line 97

Class

MaestroProductionAssignments
Defines the MaestroProductionAssignments entity.

Namespace

Drupal\maestro\Entity

Code

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