You are here

public function MediaGallery::getOwner in Media Gallery 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/MediaGallery.php, line 119

Class

MediaGallery
Defines the media gallery entity class.

Namespace

Drupal\media_gallery\Entity

Code

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