public File::setOwnerId($uid)
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 129
Class
- File
- Defines the file entity class.
Namespace
Drupal\file\Entity
Code
public function setOwnerId($uid) { $this->set('uid', $uid); return $this; }
Please login to continue.