function EntityTest::getOwnerId
Same name in other branches
- 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php \Drupal\entity_test\Entity\EntityTest::getOwnerId()
- 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php \Drupal\entity_test\Entity\EntityTest::getOwnerId()
- 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php \Drupal\entity_test\Entity\EntityTest::getOwnerId()
Overrides EntityOwnerInterface::getOwnerId
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTest.php, line 124
Class
- EntityTest
- Defines the test entity class.
Namespace
Drupal\entity_test\EntityCode
public function getOwnerId() {
return $this->get('user_id')->target_id;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.