function OEmbed::getMetadataAttributes
Same name in other branches
- 9 core/modules/media/src/Plugin/media/Source/OEmbed.php \Drupal\media\Plugin\media\Source\OEmbed::getMetadataAttributes()
- 10 core/modules/media/src/Plugin/media/Source/OEmbed.php \Drupal\media\Plugin\media\Source\OEmbed::getMetadataAttributes()
- 11.x core/modules/media/src/Plugin/media/Source/OEmbed.php \Drupal\media\Plugin\media\Source\OEmbed::getMetadataAttributes()
Overrides MediaSourceInterface::getMetadataAttributes
File
-
core/
modules/ media/ src/ Plugin/ media/ Source/ OEmbed.php, line 198
Class
- OEmbed
- Provides a media source plugin for oEmbed resources.
Namespace
Drupal\media\Plugin\media\SourceCode
public function getMetadataAttributes() {
return [
'type' => $this->t('Resource type'),
'title' => $this->t('Resource title'),
'author_name' => $this->t('The name of the author/owner'),
'author_url' => $this->t('The URL of the author/owner'),
'provider_name' => $this->t("The name of the provider"),
'provider_url' => $this->t('The URL of the provider'),
'cache_age' => $this->t('Suggested cache lifetime'),
'default_name' => $this->t('Default name of the media item'),
'thumbnail_uri' => $this->t('Local URI of the thumbnail'),
'thumbnail_width' => $this->t('Thumbnail width'),
'thumbnail_height' => $this->t('Thumbnail height'),
'url' => $this->t('The source URL of the resource'),
'width' => $this->t('The width of the resource'),
'height' => $this->t('The height of the resource'),
'html' => $this->t('The HTML representation of the resource'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.