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
1 2 3 | public function getOwnerId() { return $this ->getEntityKey( 'uid' ); } |
Please login to continue.