You are here

public function LocalTask::getOwnerId in Translation Management Tool 8

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 LocalTask::getOwnerId()
LocalTask::isAuthor in translators/tmgmt_local/src/Entity/LocalTask.php
Checks whether the user described by $account is the author of this task.

File

translators/tmgmt_local/src/Entity/LocalTask.php, line 136

Class

LocalTask
Entity class for the local task entity.

Namespace

Drupal\tmgmt_local\Entity

Code

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