public function EntityOwnerTrait::getOwnerId in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/src/EntityOwnerTrait.php \Drupal\user\EntityOwnerTrait::getOwnerId()
- 9 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\userCode
public function getOwnerId() {
return $this
->getEntityKey('owner');
}