You are here

public function Upload::defaultConfiguration in Media entity document 8

File

src/Plugin/EntityBrowser/Widget/Upload.php, line 24

Class

Upload
Uses upload to create media entity documents.

Namespace

Drupal\media_entity_document\Plugin\EntityBrowser\Widget

Code

public function defaultConfiguration() {
  return [
    'extensions' => 'txt, pdf',
    'media_bundle' => NULL,
  ] + parent::defaultConfiguration();
}