You are here

public function MaestroProcessVariables::setOwner in Maestro 3.x

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

Sets the entity owner's user entity.

Parameters

\Drupal\user\UserInterface $account: The owner user entity.

Return value

$this

Overrides EntityOwnerInterface::setOwner

File

src/Entity/MaestroProcessVariables.php, line 102

Class

MaestroProcessVariables
Defines the MaestroProcessVariables entity.

Namespace

Drupal\maestro\Entity

Code

public function setOwner(UserInterface $account) {
  $this
    ->set('user_id', $account
    ->id());
  return $this;
}