You are here

public function EntityFormProxy::defaultConfiguration in Lightning Media 8.4

Same name and namespace in other branches
  1. 8 src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\lightning_media\Plugin\EntityBrowser\Widget\EntityFormProxy::defaultConfiguration()
  2. 8.2 src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\lightning_media\Plugin\EntityBrowser\Widget\EntityFormProxy::defaultConfiguration()
  3. 8.3 src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\lightning_media\Plugin\EntityBrowser\Widget\EntityFormProxy::defaultConfiguration()
1 call to EntityFormProxy::defaultConfiguration()
FileUpload::defaultConfiguration in src/Plugin/EntityBrowser/Widget/FileUpload.php
1 method overrides EntityFormProxy::defaultConfiguration()
FileUpload::defaultConfiguration in src/Plugin/EntityBrowser/Widget/FileUpload.php

File

src/Plugin/EntityBrowser/Widget/EntityFormProxy.php, line 220

Class

EntityFormProxy
Base class for EB widgets which wrap around an (inline) entity form.

Namespace

Drupal\lightning_media\Plugin\EntityBrowser\Widget

Code

public function defaultConfiguration() {
  $configuration = parent::defaultConfiguration();

  // Allow all media types by default.
  $configuration['target_bundles'] = [];

  // Use a custom form mode so site builders have flexibility.
  $configuration['form_mode'] = 'media_browser';
  return $configuration;
}