public function Conditions::setOwnerId in Legal 8
Same name and namespace in other branches
- 2.0.x src/Entity/Conditions.php \Drupal\legal\Entity\Conditions::setOwnerId()
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
Overrides EntityOwnerInterface::setOwnerId
File
- src/
Entity/ Conditions.php, line 71
Class
- Conditions
- Defines the Legal Terms & Conditions entity.
Namespace
Drupal\legal\EntityCode
public function setOwnerId($uid) {
$this
->set('user_id', $uid);
return $this;
}