You are here

public function Resource::getThumbnailHeight in Drupal 9

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

Returns the height of the resource's thumbnail image.

Return value

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

File

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

Class

Resource
Value object representing an oEmbed resource.

Namespace

Drupal\media\OEmbed

Code

public function getThumbnailHeight() {
  return $this->thumbnailHeight;
}