public function File::setOwnerId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/file/src/Entity/File.php \Drupal\file\Entity\File::setOwnerId()
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
Overrides EntityOwnerInterface::setOwnerId
File
- core/
modules/ file/ src/ Entity/ File.php, line 130 - Contains \Drupal\file\Entity\File.
Class
- File
- Defines the file entity class.
Namespace
Drupal\file\EntityCode
public function setOwnerId($uid) {
$this
->set('uid', $uid);
return $this;
}