public function Message::setOwnerId in Message 8
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
Overrides EntityOwnerInterface::setOwnerId
File
- src/
Entity/ Message.php, line 120
Class
- Message
- Defines the Message entity class.
Namespace
Drupal\message\EntityCode
public function setOwnerId($uid) {
$this
->set('uid', $uid);
return $this;
}