EntityOwnerInterface::setOwner

public EntityOwnerInterface::setOwner(UserInterface $account)

Sets the entity owner's user entity.

Parameters

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

Return value

$this

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);
doc_Drupal
2016-10-29 09:07:18
Comments
Leave a Comment

Please login to continue.