You are here

public function Contact::setUser in RedHen CRM 8

1 call to Contact::setUser()
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 159

Class

Contact
Defines the Contact entity.

Namespace

Drupal\redhen_contact\Entity

Code

public function setUser(UserInterface $account) {
  $this
    ->set('uid', $account
    ->id());
  return $this;
}