You are here

public function Subscription::getOwnerId in Mailing List 8

Returns the entity owner's user ID.

Return value

int|null The owner user ID, or NULL in case the user ID field has not been set on the entity.

Overrides EntityOwnerInterface::getOwnerId

1 call to Subscription::getOwnerId()
Subscription::getAccessHash in src/Entity/Subscription.php
Calculates an access hash.

File

src/Entity/Subscription.php, line 139

Class

Subscription
Defines the subscription entity class.

Namespace

Drupal\mailing_list\Entity

Code

public function getOwnerId() {
  return $this
    ->get('uid')->target_id;
}