You are here

public function PrivateMessage::setOwnerId in Private Message 8

Same name and namespace in other branches
  1. 8.2 src/Entity/PrivateMessage.php \Drupal\private_message\Entity\PrivateMessage::setOwnerId()

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

src/Entity/PrivateMessage.php, line 78

Class

PrivateMessage
Thee Private Message entity definition.

Namespace

Drupal\private_message\Entity

Code

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