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