function Contact::setOwnerId
Same name in other branches
- 3.x modules/content_entity_example/src/Entity/Contact.php \Drupal\content_entity_example\Entity\Contact::setOwnerId()
- 4.0.x modules/content_entity_example/src/Entity/Contact.php \Drupal\content_entity_example\Entity\Contact::setOwnerId()
File
-
content_entity_example/
src/ Entity/ Contact.php, line 172
Class
- Contact
- Defines the ContentEntityExample entity.
Namespace
Drupal\content_entity_example\EntityCode
public function setOwnerId($uid) {
$this->set('user_id', $uid);
return $this;
}