You are here

public function BrightcoveVideo::getVideoEntity in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 modules/media_entity_brightcove/src/Plugin/MediaEntity/Type/BrightcoveVideo.php \Drupal\media_entity_brightcove\Plugin\MediaEntity\Type\BrightcoveVideo::getVideoEntity()
  2. 3.x modules/media_entity_brightcove/src/Plugin/MediaEntity/Type/BrightcoveVideo.php \Drupal\media_entity_brightcove\Plugin\MediaEntity\Type\BrightcoveVideo::getVideoEntity()

Returns the brightcove video entity.

Parameters

\Drupal\media_entity\MediaInterface $media: The media.

Return value

\Drupal\brightcove\Entity\BrightcoveVideo Brightcove video entity.

File

modules/media_entity_brightcove/src/Plugin/MediaEntity/Type/BrightcoveVideo.php, line 81

Class

BrightcoveVideo
Defines video field type for media.

Namespace

Drupal\media_entity_brightcove\Plugin\MediaEntity\Type

Code

public function getVideoEntity(MediaInterface $media) {
  return $media->{static::FIELD_NAME}->entity;
}