You are here

public function BynderUpload::defaultConfiguration in Bynder 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::defaultConfiguration()
  2. 8.2 src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::defaultConfiguration()
  3. 4.0.x src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::defaultConfiguration()

Overrides BynderWidgetBase::defaultConfiguration

File

src/Plugin/EntityBrowser/Widget/BynderUpload.php, line 110

Class

BynderUpload
Uses upload to create media entities.

Namespace

Drupal\bynder\Plugin\EntityBrowser\Widget

Code

public function defaultConfiguration() {
  return [
    'brand' => NULL,
    'extensions' => 'jpg jpeg png gif',
    'dropzone_description' => $this
      ->t('Drop files here to upload them.'),
    'tags' => [],
    'metaproperty_options' => [],
  ] + parent::defaultConfiguration();
}