You are here

public function PushNotificationsToken::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/PushNotificationsToken.php, line 71
Contains \Drupal\push_notifications\Entity\PushNotificationsToken.

Class

PushNotificationsToken
Defines the token entity.

Namespace

Drupal\push_notifications\Entity

Code

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