function EntityOwnerTrait::getOwnerId

Same name and namespace in other branches
  1. 11.x core/modules/user/src/EntityOwnerTrait.php \Drupal\user\EntityOwnerTrait::getOwnerId()

File

core/modules/user/src/EntityOwnerTrait.php, line 48

Class

EntityOwnerTrait
Provides a trait for entities that have an owner.

Namespace

Drupal\user

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.