Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Resource.php

function 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;
}
RSS feed
Powered by Drupal