You are here

public function Upload::defaultConfiguration in Media entity audio 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/EntityBrowser/Widget/Upload.php \Drupal\media_entity_audio\Plugin\EntityBrowser\Widget\Upload::defaultConfiguration()

File

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

Class

Upload
Uses upload to create media entity audios.

Namespace

Drupal\media_entity_audio\Plugin\EntityBrowser\Widget

Code

public function defaultConfiguration() {
  return [
    'extensions' => 'mp3 wav ogg',
    'media bundle' => NULL,
  ] + parent::defaultConfiguration();
}