You are here

public function WebformSubmission::getOwnerId in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/WebformSubmission.php \Drupal\webform\Entity\WebformSubmission::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

1 call to WebformSubmission::getOwnerId()
WebformSubmission::isOwner in src/Entity/WebformSubmission.php
Test whether the provided account is owner of this webform submission.

File

src/Entity/WebformSubmission.php, line 621

Class

WebformSubmission
Defines the WebformSubmission entity.

Namespace

Drupal\webform\Entity

Code

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