You are here

public function EntityOwnerInterface::setOwner in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/user/src/EntityOwnerInterface.php \Drupal\user\EntityOwnerInterface::setOwner()

Sets the entity owner's user entity.

Parameters

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

Return value

$this

1 method overrides EntityOwnerInterface::setOwner()
EntityTest::setOwner in core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php
Sets the entity owner's user entity.

File

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

Class

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

Namespace

Drupal\user

Code

public function setOwner(UserInterface $account);