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

Breadcrumb

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

function Resource::getHeight

Returns the height of the resource.

Return value

int|null The height of the resource in pixels, or NULL if the resource has no height.

File

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

Class

Resource
Value object representing an oEmbed resource.

Namespace

Drupal\media\OEmbed

Code

public function getHeight() {
    return $this->height;
}
RSS feed
Powered by Drupal