public function Relation::setUserId in CRM Core 8.3
Same name and namespace in other branches
- 8 modules/crm_core_user_sync/src/Entity/Relation.php \Drupal\crm_core_user_sync\Entity\Relation::setUserId()
Sets the relation user ID.
Parameters
int $uid: The relation user id.
Return value
$this
Overrides RelationInterface::setUserId
File
- modules/
crm_core_user_sync/ src/ Entity/ Relation.php, line 67
Class
- Relation
- Defines the relation entity class.
Namespace
Drupal\crm_core_user_sync\EntityCode
public function setUserId($uid) {
$this
->set('user_id', $uid);
return $this;
}