You are here

public function MediaEntityDropzoneJsEbWidget::__construct in DropzoneJS 8

Constructs widget plugin.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: Event dispatcher service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\entity_browser\WidgetValidationManager $validation_manager: The Widget Validation Manager service.

\Drupal\dropzonejs\DropzoneJsUploadSaveInterface $dropzonejs_upload_save: The upload saving dropzonejs service.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user service.

Token $token: The token service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

Overrides DropzoneJsEbWidget::__construct

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

File

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

Class

MediaEntityDropzoneJsEbWidget
Provides an Entity Browser widget that uploads uploads media entities.

Namespace

Drupal\dropzonejs_eb_widget\Plugin\EntityBrowser\Widget

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $event_dispatcher, EntityTypeManagerInterface $entity_type_manager, WidgetValidationManager $validation_manager, DropzoneJsUploadSaveInterface $dropzonejs_upload_save, AccountProxyInterface $current_user, Token $token, ModuleHandlerInterface $module_handler) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $event_dispatcher, $entity_type_manager, $validation_manager, $dropzonejs_upload_save, $current_user, $token);
  $this->moduleHandler = $module_handler;
}