public function EntityOwnerInterface::setOwnerId in Zircon Profile 8.0
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
4 methods override EntityOwnerInterface::setOwnerId()
- Comment::setOwnerId in core/
modules/ comment/ src/ Entity/ Comment.php - Sets the entity owner's user ID.
- EntityTest::setOwnerId in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTest.php - Sets the entity owner's user ID.
- File::setOwnerId in core/
modules/ file/ src/ Entity/ File.php - Sets the entity owner's user ID.
- Node::setOwnerId in core/
modules/ node/ src/ Entity/ Node.php - Sets the entity owner's user ID.
File
- core/
modules/ user/ src/ EntityOwnerInterface.php, line 55 - Contains \Drupal\user\EntityOwnerInterface.
Class
- EntityOwnerInterface
- Defines a common interface for entities that have an owner.
Namespace
Drupal\userCode
public function setOwnerId($uid);