public function EntityOwnerInterface::setOwner in Drupal 9
Same name and namespace in other branches
- 8 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\userCode
public function setOwner(UserInterface $account);