public function FileUpload::defaultConfiguration in Lightning Media 8.4
Same name and namespace in other branches
- 8 src/Plugin/EntityBrowser/Widget/FileUpload.php \Drupal\lightning_media\Plugin\EntityBrowser\Widget\FileUpload::defaultConfiguration()
- 8.2 src/Plugin/EntityBrowser/Widget/FileUpload.php \Drupal\lightning_media\Plugin\EntityBrowser\Widget\FileUpload::defaultConfiguration()
- 8.3 src/Plugin/EntityBrowser/Widget/FileUpload.php \Drupal\lightning_media\Plugin\EntityBrowser\Widget\FileUpload::defaultConfiguration()
Overrides EntityFormProxy::defaultConfiguration
File
- src/
Plugin/ EntityBrowser/ Widget/ FileUpload.php, line 221
Class
- FileUpload
- An Entity Browser widget for creating media entities from uploaded files.
Namespace
Drupal\lightning_media\Plugin\EntityBrowser\WidgetCode
public function defaultConfiguration() {
$configuration = parent::defaultConfiguration();
$configuration['return_file'] = FALSE;
$configuration['upload_validators'] = [];
return $configuration;
}