function Resource::getThumbnailUrl
Returns the URL of the resource's thumbnail image.
Return value
\Drupal\Core\Url|null The absolute URL of the thumbnail image, or NULL if there isn't one.
File
- 
              core/
modules/ media/ src/ OEmbed/ Resource.php, line 415  
Class
- Resource
 - Value object representing an oEmbed resource.
 
Namespace
Drupal\media\OEmbedCode
public function getThumbnailUrl() {
  return $this->thumbnailUrl ? Url::fromUri($this->thumbnailUrl)
    ->setAbsolute() : NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.