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