You are here

public function Reference::getOwnerId in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/Entity/Reference.php \Drupal\bibcite_entity\Entity\Reference::getOwnerId()

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 Reference::getOwnerId()
Reference::preSave in modules/bibcite_entity/src/Entity/Reference.php
Acts on an entity before the presave hook is invoked.

File

modules/bibcite_entity/src/Entity/Reference.php, line 146

Class

Reference
Defines the Reference entity.

Namespace

Drupal\bibcite_entity\Entity

Code

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