You are here

public function EntityOwnerInterface::getOwner in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/user/src/EntityOwnerInterface.php \Drupal\user\EntityOwnerInterface::getOwner()

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

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

File

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

Class

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

Namespace

Drupal\user

Code

public function getOwner();