Node::getOwnerId

public Node::getOwnerId()

Returns the entity owner's user ID.

Return value

int|null The owner user ID, or NULL in case the user ID field has not been set on the entity.

Overrides EntityOwnerInterface::getOwnerId

File

core/modules/node/src/Entity/Node.php, line 270

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

public function getOwnerId() {
  return $this->getEntityKey('uid');
}
doc_Drupal
2016-10-29 09:30:20
Comments
Leave a Comment

Please login to continue.