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

Breadcrumb

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

function 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;
}

API Navigation

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