You are here

public function Subscription::getOwner in Mailing List 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Subscription.php, line 124

Class

Subscription
Defines the subscription entity class.

Namespace

Drupal\mailing_list\Entity

Code

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