You are here

public function PrivateMessage::getOwner in Private Message 8

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

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/PrivateMessage.php, line 64

Class

PrivateMessage
Thee Private Message entity definition.

Namespace

Drupal\private_message\Entity

Code

public function getOwner() {
  return $this
    ->get('owner')->entity;
}