You are here

public function MaestroProcessVariables::setOwnerId in Maestro 3.x

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

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

src/Entity/MaestroProcessVariables.php, line 94

Class

MaestroProcessVariables
Defines the MaestroProcessVariables entity.

Namespace

Drupal\maestro\Entity

Code

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