public function EntityOwnerInterface::setOwnerId in Drupal 9
Same name and namespace in other branches
- 8 core/modules/user/src/EntityOwnerInterface.php \Drupal\user\EntityOwnerInterface::setOwnerId()
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
1 method overrides EntityOwnerInterface::setOwnerId()
- EntityTest::setOwnerId in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTest.php - Sets the entity owner's user ID.
File
- core/
modules/ user/ src/ EntityOwnerInterface.php, line 50
Class
- EntityOwnerInterface
- Defines a common interface for entities that have an owner.
Namespace
Drupal\userCode
public function setOwnerId($uid);