You are here

public function Contact::setOwner in RedHen CRM 8

Sets the entity owner's user entity.

Parameters

\Drupal\user\UserInterface $account: The owner user entity.

Return value

$this

Overrides EntityOwnerInterface::setOwner

File

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

Class

Contact
Defines the Contact entity.

Namespace

Drupal\redhen_contact\Entity

Code

public function setOwner(UserInterface $account) {
  $this
    ->setOwnerId($account
    ->id());
  return $this;
}