public function Mentions::setOwner in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwner()
- 8.5 modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwner()
- 8.6 modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwner()
- 8.7 modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwner()
- 8.8 modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwner()
- 10.3.x modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwner()
- 10.0.x modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwner()
- 10.2.x modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwner()
Sets the entity owner's user entity.
Parameters
\Drupal\user\UserInterface $account: The owner user entity.
Return value
$this
Overrides EntityOwnerInterface::setOwner
File
- modules/
custom/ mentions/ src/ Entity/ Mentions.php, line 120
Class
- Mentions
- Mentions Class.
Namespace
Drupal\mentions\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('auid', $account
->id());
return $this;
}