You are here

public function DropzoneJsEbWidget::__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.

\Drupal\Core\Utility\Token $token: The token service.

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

File

modules/eb_widget/src/Plugin/EntityBrowser/Widget/DropzoneJsEbWidget.php, line 74

Class

DropzoneJsEbWidget
Provides an Entity Browser widget that uploads new files.

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) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $event_dispatcher, $entity_type_manager, $validation_manager);
  $this->dropzoneJsUploadSave = $dropzonejs_upload_save;
  $this->currentUser = $current_user;
  $this->token = $token;
}