You are here

public function EntityOwnerInterface::getOwnerId in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/EntityOwnerInterface.php \Drupal\user\EntityOwnerInterface::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.

4 methods override EntityOwnerInterface::getOwnerId()
Comment::getOwnerId in core/modules/comment/src/Entity/Comment.php
Returns the entity owner's user ID.
EntityTest::getOwnerId in core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php
Returns the entity owner's user ID.
File::getOwnerId in core/modules/file/src/Entity/File.php
Returns the entity owner's user ID.
Node::getOwnerId in core/modules/node/src/Entity/Node.php
Returns the entity owner's user ID.

File

core/modules/user/src/EntityOwnerInterface.php, line 45
Contains \Drupal\user\EntityOwnerInterface.

Class

EntityOwnerInterface
Defines a common interface for entities that have an owner.

Namespace

Drupal\user

Code

public function getOwnerId();