Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
EntityOwnerTrait.php
function EntityOwnerTrait::getOwnerId
1 call to
EntityOwnerTrait::getOwnerId()
Node::preSave
in core/
modules/
node/
src/
Entity/
Node.php
Acts on an entity before the presave hook is invoked.
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'
); }
RSS feed