You are here

public function Media::getPublisher in Media entity 8

Returns the media publisher user entity.

Return value

\Drupal\user\UserInterface The author user entity.

Overrides MediaInterface::getPublisher

1 call to Media::getPublisher()
Media::automaticallySetThumbnail in src/Entity/Media.php
Automatically determines the most appropriate thumbnail and sets "thumbnail" field.

File

src/Entity/Media.php, line 126

Class

Media
Defines the media entity class.

Namespace

Drupal\media_entity\Entity

Code

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