You are here

public function RngContact::setOwnerId in RNG Contact 8

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

src/Entity/RngContact.php, line 69

Class

RngContact
Defines the contact entity.

Namespace

Drupal\rng_contact\Entity

Code

public function setOwnerId($uid) {
  $this
    ->set('owner', $uid);
  return $this;
}