public function TeamMemberRole::setOwner in Apigee Edge 8
Sets the entity owner's user entity.
Parameters
\Drupal\user\UserInterface $account: The owner user entity.
Return value
$this
Overrides EntityOwnerInterface::setOwner
File
- modules/
apigee_edge_teams/ src/ Entity/ TeamMemberRole.php, line 151
Class
- TeamMemberRole
- Defines the team member role entity.
Namespace
Drupal\apigee_edge_teams\EntityCode
public function setOwner(UserInterface $account) {
return $this
->set('uid', $account
->id());
}