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

1
public function setOwner(UserInterface $account);
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.