You are here

public static function MediaEntityDropzoneJsEbWidget::create in DropzoneJS 8.2

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

Overrides DropzoneJsEbWidget::create

1 call to MediaEntityDropzoneJsEbWidget::create()
InlineEntityFormMediaWidget::create in modules/eb_widget/src/Plugin/EntityBrowser/Widget/InlineEntityFormMediaWidget.php
1 method overrides MediaEntityDropzoneJsEbWidget::create()
InlineEntityFormMediaWidget::create in modules/eb_widget/src/Plugin/EntityBrowser/Widget/InlineEntityFormMediaWidget.php

File

modules/eb_widget/src/Plugin/EntityBrowser/Widget/MediaEntityDropzoneJsEbWidget.php, line 37

Class

MediaEntityDropzoneJsEbWidget
Provides an Entity Browser widget that uploads media entities.

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
    ->setModuleHandler($container
    ->get('module_handler'));
  return $widget;
}