public function BrightcoveVideo::getThumbnail in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/Entity/BrightcoveVideo.php \Drupal\brightcove\Entity\BrightcoveVideo::getThumbnail()
- 3.x src/Entity/BrightcoveVideo.php \Drupal\brightcove\Entity\BrightcoveVideo::getThumbnail()
Returns the video's thumbnail image.
Return value
array The thumbnail image on the entity.
Overrides BrightcoveVideoInterface::getThumbnail
1 call to BrightcoveVideo::getThumbnail()
- BrightcoveVideo::setThumbnail in src/
Entity/ BrightcoveVideo.php - Sets the video's thumbnail image.
File
- src/
Entity/ BrightcoveVideo.php, line 476
Class
- BrightcoveVideo
- Defines the Brightcove Video entity.
Namespace
Drupal\brightcove\EntityCode
public function getThumbnail() {
$values = $this
->get('thumbnail')
->getValue();
if (empty($values[0]['target_id'])) {
return NULL;
}
$this
->provideDefaultValuesForImageField($values);
return $values[0];
}