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