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);
Please login to continue.