You are here

public function BrightcoveCmsEntity::getOwner in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveCmsEntity.php \Drupal\brightcove\Entity\BrightcoveCmsEntity::getOwner()
  2. 3.x src/Entity/BrightcoveCmsEntity.php \Drupal\brightcove\Entity\BrightcoveCmsEntity::getOwner()

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/BrightcoveCmsEntity.php, line 68

Class

BrightcoveCmsEntity
Common base class for CMS entities like Video and Playlist.

Namespace

Drupal\brightcove\Entity

Code

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