You are here

public function LocalTask::getOwner in Translation Management Tool 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

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

Class

LocalTask
Entity class for the local task entity.

Namespace

Drupal\tmgmt_local\Entity

Code

public function getOwner() {
  return $this
    ->get('uid')->entity;
}