You are here

public function FlagListItem::getOwner in Flag Lists 4.0.x

Same name and namespace in other branches
  1. 8 src/Entity/FlagListItem.php \Drupal\flag_lists\Entity\FlagListItem::getOwner()

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/FlagListItem.php, line 109

Class

FlagListItem
Defines the Flag list item entity.

Namespace

Drupal\flag_lists\Entity

Code

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