You are here

public function EntityOwnerTrait::getOwnerId in Profile 8

2 calls to EntityOwnerTrait::getOwnerId()
Profile::postSave in src/Entity/Profile.php
Acts on a saved entity before the insert or update hook is invoked.
Profile::preSave in src/Entity/Profile.php
Acts on an entity before the presave hook is invoked.

File

src/EntityOwnerTrait.php, line 53

Class

EntityOwnerTrait
Provides a trait for entities that have an owner.

Namespace

Drupal\profile

Code

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