public function Resource::getWidth in Drupal 8
Same name and namespace in other branches
- 9 core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::getWidth()
Returns the width of the resource.
Return value
int|null The width of the resource in pixels, or NULL if the resource has no width.
File
- core/
modules/ media/ src/ OEmbed/ Resource.php, line 446
Class
- Resource
- Value object representing an oEmbed resource.
Namespace
Drupal\media\OEmbedCode
public function getWidth() {
return $this->width;
}