public function EntityTest::getOwner in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php \Drupal\entity_test\Entity\EntityTest::getOwner()
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTest.php, line 139 - Contains \Drupal\entity_test\Entity\EntityTest.
Class
- EntityTest
- Defines the test entity class.
Namespace
Drupal\entity_test\EntityCode
public function getOwner() {
return $this
->get('user_id')->entity;
}