public function MaestroProcessStatus::setOwner in Maestro 3.x
Same name and namespace in other branches
- 8.2 src/Entity/MaestroProcessStatus.php \Drupal\maestro\Entity\MaestroProcessStatus::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/ MaestroProcessStatus.php, line 101
Class
- MaestroProcessStatus
- Defines the MaestroProcessStatus entity.
Namespace
Drupal\maestro\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('user_id', $account
->id());
return $this;
}