function Contact::getOwnerId

Same name in other branches
  1. 3.x modules/content_entity_example/src/Entity/Contact.php \Drupal\content_entity_example\Entity\Contact::getOwnerId()

File

modules/content_entity_example/src/Entity/Contact.php, line 165

Class

Contact
Defines the ContentEntityExample entity.

Namespace

Drupal\content_entity_example\Entity

Code

public function getOwnerId() {
    return $this->get('user_id')->target_id;
}