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