function EntityOwnerInterface::setOwnerId

Same name and namespace in other branches
  1. 11.x 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

File

core/modules/user/src/EntityOwnerInterface.php, line 52

Class

EntityOwnerInterface
Defines a common interface for entities that have an owner.

Namespace

Drupal\user

Code

public function setOwnerId($uid);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.