public function Unit::setOwnerId in Booking and Availability Management Tools for Drupal 8
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
Overrides EntityOwnerInterface::setOwnerId
File
- modules/
bat_unit/ src/ Entity/ Unit.php, line 101 - Contains \Drupal\bat_unit\Entity\Unit.
Class
- Unit
- Defines the Unit entity.
Namespace
Drupal\bat_unit\EntityCode
public function setOwnerId($uid) {
$this
->set('uid', $uid);
return $this;
}