EntityOwnerInterface::getOwnerId

public EntityOwnerInterface::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.

File

core/modules/user/src/EntityOwnerInterface.php, line 40

Class

EntityOwnerInterface
Defines a common interface for entities that have an owner.

Namespace

Drupal\user

Code

1
public function getOwnerId();
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.