You are here

public function Oauth2Client::setOwnerId in Simple OAuth (OAuth2) & OpenID Connect 8.2

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

src/Entity/Oauth2Client.php, line 166

Class

Oauth2Client
Defines the Oauth2 Token entity.

Namespace

Drupal\simple_oauth\Entity

Code

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