You are here

public function PushNotification::getOwner in Push Notifications 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/PushNotification.php, line 121
Contains Drupal\push_notifications\Entity\PushNotification.

Class

PushNotification
Defines the push_notification entity.

Namespace

Drupal\push_notifications\Entity

Code

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