You are here

public function Relation::getUser in CRM Core 8

Same name and namespace in other branches
  1. 8.3 modules/crm_core_user_sync/src/Entity/Relation.php \Drupal\crm_core_user_sync\Entity\Relation::getUser()

Returns the relation user entity.

Return value

\Drupal\user\UserInterface The relation user entity.

Overrides RelationInterface::getUser

File

modules/crm_core_user_sync/src/Entity/Relation.php, line 53

Class

Relation
Defines the relation entity class.

Namespace

Drupal\crm_core_user_sync\Entity

Code

public function getUser() {
  return $this
    ->get('user_id')->entity;
}