You are here

public function RoleWatchdog::getOwner in Role Watchdog 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/RoleWatchdog.php, line 109

Class

RoleWatchdog
Defines the Role Watchdog entity.

Namespace

Drupal\role_watchdog\Entity

Code

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