You are here

public function Flagging::getOwner in Flag 8.4

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Flagging.php, line 207

Class

Flagging
Provides the flagging content entity.

Namespace

Drupal\flag\Entity

Code

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