You are here

public function Workflow::setOwner in Forms Steps 8

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/Workflow.php, line 77

Class

Workflow
Defines the Workflow entity.

Namespace

Drupal\forms_steps\Entity

Code

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