function Image::getMetadataAttributes

Same name and namespace in other branches
  1. 9 core/modules/media/src/Plugin/media/Source/Image.php \Drupal\media\Plugin\media\Source\Image::getMetadataAttributes()
  2. 8.9.x core/modules/media/src/Plugin/media/Source/Image.php \Drupal\media\Plugin\media\Source\Image::getMetadataAttributes()
  3. 11.x core/modules/media/src/Plugin/media/Source/Image.php \Drupal\media\Plugin\media\Source\Image::getMetadataAttributes()

Overrides File::getMetadataAttributes

File

core/modules/media/src/Plugin/media/Source/Image.php, line 110

Class

Image
Image entity media source.

Namespace

Drupal\media\Plugin\media\Source

Code

public function getMetadataAttributes() {
  $attributes = parent::getMetadataAttributes();
  $attributes += [
    static::METADATA_ATTRIBUTE_WIDTH => $this->t('Width'),
    static::METADATA_ATTRIBUTE_HEIGHT => $this->t('Height'),
  ];
  return $attributes;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.