You are here

public function Developer::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/Developer.php, line 418

Class

Developer
Defines the Developer entity class.

Namespace

Drupal\apigee_edge\Entity

Code

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