You are here

public function Mentions::setOwnerId in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwnerId()
  2. 8.5 modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwnerId()
  3. 8.6 modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwnerId()
  4. 8.7 modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwnerId()
  5. 10.3.x modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwnerId()
  6. 10.0.x modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwnerId()
  7. 10.1.x modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwnerId()
  8. 10.2.x modules/custom/mentions/src/Entity/Mentions.php \Drupal\mentions\Entity\Mentions::setOwnerId()

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

modules/custom/mentions/src/Entity/Mentions.php, line 112

Class

Mentions
Mentions Class.

Namespace

Drupal\mentions\Entity

Code

public function setOwnerId($uid) {
  $this
    ->set('auid', $uid);
  return $this;
}