You are here

public function Upload::defaultConfiguration in Entity Browser 8

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

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides WidgetBase::defaultConfiguration

File

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

Class

Upload
Adds an upload field browser's widget.

Namespace

Drupal\entity_browser\Plugin\EntityBrowser\Widget

Code

public function defaultConfiguration() {
  return [
    'upload_location' => 'public://',
    'multiple' => TRUE,
    'submit_text' => $this
      ->t('Select files'),
    'extensions' => 'jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp',
  ] + parent::defaultConfiguration();
}