You are here

public function Resource::getThumbnailWidth in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::getThumbnailWidth()
  2. 9 core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::getThumbnailWidth()

Returns the width of the resource's thumbnail image.

Return value

int|null The thumbnail width in pixels, or NULL if there is no thumbnail.

File

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

Class

Resource
Value object representing an oEmbed resource.

Namespace

Drupal\media\OEmbed

Code

public function getThumbnailWidth() {
  return $this->thumbnailWidth;
}