You are here

public function Flagging::setOwnerId in Flag 8.4

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

src/Entity/Flagging.php, line 229

Class

Flagging
Provides the flagging content entity.

Namespace

Drupal\flag\Entity

Code

public function setOwnerId($uid) {
  $this
    ->set('uid', $uid);
}