You are here

public static function InlineEntityFormMediaWidget::create in DropzoneJS 8.2

Same name and namespace in other branches
  1. 8 modules/eb_widget/src/Plugin/EntityBrowser/Widget/InlineEntityFormMediaWidget.php \Drupal\dropzonejs_eb_widget\Plugin\EntityBrowser\Widget\InlineEntityFormMediaWidget::create()

Overrides MediaEntityDropzoneJsEbWidget::create

File

modules/eb_widget/src/Plugin/EntityBrowser/Widget/InlineEntityFormMediaWidget.php, line 36

Class

InlineEntityFormMediaWidget
Provides an Entity Browser widget that uploads and edit new files.

Namespace

Drupal\dropzonejs_eb_widget\Plugin\EntityBrowser\Widget

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  $widget = parent::create($container, $configuration, $plugin_id, $plugin_definition);
  $widget
    ->setEntityDisplayRepository($container
    ->get('entity_display.repository'));
  return $widget;
}