public function Developer::setOwnerId in Apigee Edge 8
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
Overrides EntityOwnerInterface::setOwnerId
1 call to Developer::setOwnerId()
- Developer::setOwner in src/
Entity/ Developer.php - Sets the entity owner's user entity.
File
- src/
Entity/ Developer.php, line 444
Class
- Developer
- Defines the Developer entity class.
Namespace
Drupal\apigee_edge\EntityCode
public function setOwnerId($uid) {
$this->drupalUserId = $uid;
// When a new user is created uid is null.
if ($uid !== NULL) {
$account = User::load($uid);
if ($account !== NULL && $this
->getEmail() !== $account
->getEmail()) {
$this
->setEmail($account
->getEmail());
}
}
return $this;
}