public function EntityOwnerInterface::setOwner in Zircon Profile 8.0
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
4 methods override EntityOwnerInterface::setOwner()
- Comment::setOwner in core/
modules/ comment/ src/ Entity/ Comment.php - Sets the entity owner's user entity.
- EntityTest::setOwner in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTest.php - Sets the entity owner's user entity.
- File::setOwner in core/
modules/ file/ src/ Entity/ File.php - Sets the entity owner's user entity.
- Node::setOwner in core/
modules/ node/ src/ Entity/ Node.php - Sets the entity owner's user entity.
File
- core/
modules/ user/ src/ EntityOwnerInterface.php, line 36 - Contains \Drupal\user\EntityOwnerInterface.
Class
- EntityOwnerInterface
- Defines a common interface for entities that have an owner.
Namespace
Drupal\userCode
public function setOwner(UserInterface $account);