You are here

public function PrivateMessageThreadDeleteTime::setOwner in Private Message 8

Sets the entity owner's user entity.

Parameters

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

Return value

$this

Overrides EntityOwnerInterface::setOwner

File

src/Entity/PrivateMessageThreadDeleteTime.php, line 70

Class

PrivateMessageThreadDeleteTime
Defines the PrivateMessageThreadDeleteTime entity.

Namespace

Drupal\private_message\Entity

Code

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