You are here

public function RngContact::getOwnerId in RNG Contact 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

File

src/Entity/RngContact.php, line 62

Class

RngContact
Defines the contact entity.

Namespace

Drupal\rng_contact\Entity

Code

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