function EntityOwnerInterface::getOwner

Same name in other branches
  1. 8.9.x core/modules/user/src/EntityOwnerInterface.php \Drupal\user\EntityOwnerInterface::getOwner()
  2. 10 core/modules/user/src/EntityOwnerInterface.php \Drupal\user\EntityOwnerInterface::getOwner()
  3. 11.x 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.

1 method overrides EntityOwnerInterface::getOwner()
EntityTest::getOwner in core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php
Returns the entity owner's user entity.

File

core/modules/user/src/EntityOwnerInterface.php, line 23

Class

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

Namespace

Drupal\user

Code

public function getOwner();

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