You are here

public function Document::providedFields in Media entity document 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/Document.php, line 26

Class

Document
Provides media type plugin for Document.

Namespace

Drupal\media_entity_document\Plugin\MediaEntity\Type

Code

public function providedFields() {
  return [
    'mime' => $this
      ->t('File MIME'),
    'size' => $this
      ->t('Size'),
  ];
}