You are here

public function PushNotificationsToken::setOwnerId in Push Notifications 8

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

src/Entity/PushNotificationsToken.php, line 113
Contains \Drupal\push_notifications\Entity\PushNotificationsToken.

Class

PushNotificationsToken
Defines the token entity.

Namespace

Drupal\push_notifications\Entity

Code

public function setOwnerId($uid) {
  $this
    ->set('uid', $uid);
  return $this;
}