Resource::$thumbnailUrl

Same name in other branches
  1. 9 core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::thumbnailUrl
  2. 8.9.x core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::thumbnailUrl
  3. 11.x core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::thumbnailUrl

A URL to a thumbnail image representing the resource.

The thumbnail must respect any maxwidth and maxheight parameters passed to the oEmbed endpoint. If this parameter is present, thumbnail_width and thumbnail_height must also be present.

Type: string

See also

\Drupal\media\OEmbed\UrlResolverInterface::getResourceUrl()

https://oembed.com/#section2

File

core/modules/media/src/OEmbed/Resource.php, line 100

Class

Resource
Value object representing an oEmbed resource.

Namespace

Drupal\media\OEmbed

Code

protected $thumbnailUrl;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.