public function Instagram::providedFields in Media entity Instagram 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
- src/
Plugin/ MediaEntity/ Type/ Instagram.php, line 103
Class
- Provides media type plugin for Instagram.
Namespace
Drupal\media_entity_instagram\Plugin\MediaEntity\TypeCode
public function providedFields() {
return [
'shortcode' => $this
->t('Instagram shortcode'),
'id' => $this
->t('Media ID'),
'type' => $this
->t('Media type: image or video'),
'thumbnail' => $this
->t('Link to the thumbnail'),
'thumbnail_local' => $this
->t("Copies thumbnail locally and return it's URI"),
'thumbnail_local_uri' => $this
->t('Returns local URI of the thumbnail'),
'username' => $this
->t('Author of the post'),
'caption' => $this
->t('Caption'),
];
}