You are here

public function MassContactMessage::getOwner in Mass Contact 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/MassContactMessage.php, line 54

Class

MassContactMessage
The mass contact message entity for archiving messages.

Namespace

Drupal\mass_contact\Entity

Code

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