public function Pet::setOwnerId in Previewable email templates 8.3
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
Overrides EntityOwnerInterface::setOwnerId
File
- src/
Entity/ Pet.php, line 510
Class
- Pet
- Defines the pet entity.
Namespace
Drupal\pet\EntityCode
public function setOwnerId($uid) {
$this
->set('user_id', $uid);
return $this;
}