File::setOwnerId

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;
}
doc_Drupal
2016-10-29 09:13:17
Comments
Leave a Comment

Please login to continue.