public function EntityOwnerTrait::setOwnerId in CRM Core 8
Same name and namespace in other branches
- 8.2 src/EntityOwnerTrait.php \Drupal\crm_core\EntityOwnerTrait::setOwnerId()
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
File
- src/
EntityOwnerTrait.php, line 85
Class
- EntityOwnerTrait
- Trait implementing the various methods defined in EntityOwnerInterface.
Namespace
Drupal\crm_coreCode
public function setOwnerId($uid) {
$this
->set('uid', $uid);
return $this;
}