public function Relation::getUserId in CRM Core 8
Same name and namespace in other branches
- 8.3 modules/crm_core_user_sync/src/Entity/Relation.php \Drupal\crm_core_user_sync\Entity\Relation::getUserId()
Returns the relation user ID.
Return value
int|null The relation user ID, or NULL in case the user ID field has not been set.
Overrides RelationInterface::getUserId
File
- modules/
crm_core_user_sync/ src/ Entity/ Relation.php, line 60
Class
- Relation
- Defines the relation entity class.
Namespace
Drupal\crm_core_user_sync\EntityCode
public function getUserId() {
return $this
->get('user_id')->target_id;
}