function Resource::getHtml
Same name in other branches
- 9 core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::getHtml()
- 8.9.x core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::getHtml()
- 10 core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::getHtml()
Returns the HTML representation of the resource.
Only applies to 'rich' and 'video' resources.
Return value
string|null The HTML representation of the resource, if it has one.
File
-
core/
modules/ media/ src/ OEmbed/ Resource.php, line 482
Class
- Resource
- Value object representing an oEmbed resource.
Namespace
Drupal\media\OEmbedCode
public function getHtml() {
return isset($this->html) ? (string) $this->html : NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.