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

Breadcrumb

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

function OEmbed::getMetadataAttributes

Overrides MediaSourceInterface::getMetadataAttributes

File

core/modules/media/src/Plugin/media/Source/OEmbed.php, line 210

Class

OEmbed
Provides a media source plugin for oEmbed resources.

Namespace

Drupal\media\Plugin\media\Source

Code

public function getMetadataAttributes() {
    return [
        'type' => $this->t('Resource type'),
        'title' => $this->t('Resource title'),
        'author_name' => $this->t('Author/owner name'),
        'author_url' => $this->t('Author/owner URL'),
        'provider_name' => $this->t('Provider name'),
        'provider_url' => $this->t('Provider URL'),
        'cache_age' => $this->t('Suggested cache lifetime'),
        'default_name' => $this->t('Media item default name'),
        'thumbnail_uri' => $this->t('Thumbnail local URI'),
        'thumbnail_width' => $this->t('Thumbnail width'),
        'thumbnail_height' => $this->t('Thumbnail height'),
        'url' => $this->t('Resource source URL'),
        'width' => $this->t('Resource width'),
        'height' => $this->t('Resource height'),
        'html' => $this->t('Resource HTML representation'),
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal