You are here

public function VideoEmbedField::providedFields in Video Embed Field 8

Gets list of fields provided by this plugin.

Return value

array Associative array with field names as keys and descriptions as values.

Overrides MediaTypeInterface::providedFields

File

modules/video_embed_media/src/Plugin/MediaEntity/Type/VideoEmbedField.php, line 137

Class

VideoEmbedField
Provides media type plugin for video embed field.

Namespace

Drupal\video_embed_media\Plugin\MediaEntity\Type

Code

public function providedFields() {
  return [
    'id' => $this
      ->t('Video ID.'),
    'source' => $this
      ->t('Video source machine name.'),
    'source_name' => $this
      ->t('Video source human name.'),
    'image_local' => $this
      ->t('Copies thumbnail image to the local filesystem and returns the URI.'),
    'image_local_uri' => $this
      ->t('Gets URI of the locally saved image.'),
  ];
}