You are here

public function Contact::getUser in RedHen CRM 8

3 calls to Contact::getUser()
Contact::getOwner in modules/redhen_contact/src/Entity/Contact.php
Returns the entity owner's user entity.
Contact::postSave in modules/redhen_contact/src/Entity/Contact.php
Acts on a saved entity before the insert or update hook is invoked.
Contact::preSave in modules/redhen_contact/src/Entity/Contact.php
Acts on an entity before the presave hook is invoked.

File

modules/redhen_contact/src/Entity/Contact.php, line 137

Class

Contact
Defines the Contact entity.

Namespace

Drupal\redhen_contact\Entity

Code

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