You are here

public function DeveloperApp::setOwner in Apigee Edge 8

Sets the entity owner's user entity.

Parameters

\Drupal\user\UserInterface $account: The owner user entity.

Return value

$this

Overrides EntityOwnerInterface::setOwner

File

src/Entity/DeveloperApp.php, line 157

Class

DeveloperApp
Defines the Developer app entity class.

Namespace

Drupal\apigee_edge\Entity

Code

public function setOwner(UserInterface $account) {
  $this
    ->setOwnerId($account
    ->id());
  return $this;
}