public function Image::providedFields in Media entity image 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/ Image.php, line 81
Class
- Image
- Provides media type plugin for Image.
Namespace
Drupal\media_entity_image\Plugin\MediaEntity\TypeCode
public function providedFields() {
$fields = array(
'mime' => $this
->t('File MIME'),
'width' => $this
->t('Width'),
'height' => $this
->t('Height'),
);
if (!empty($this->configuration['gather_exif'])) {
$fields += array(
'model' => $this
->t('Camera model'),
'created' => $this
->t('Image creation datetime'),
'iso' => $this
->t('Iso'),
'exposure' => $this
->t('Exposure time'),
'aperture' => $this
->t('Aperture value'),
'focal_length' => $this
->t('Focal length'),
);
}
return $fields;
}