Commit 19c56ab1 authored by Primsi's avatar Primsi
Browse files

by primsi: currentUser is already injected.

parent b8c9f6a8
......@@ -92,7 +92,7 @@ class MediaEntityDropzoneJsEbWidget extends DropzoneJsEbWidget {
$media_entities = [];
$upload = $form_state->getValue('upload');
$config = $this->getConfiguration();
$user = \Drupal::currentUser();
$user = $this->currentUser;
/** @var \Drupal\media_entity\MediaBundleInterface $bundle */
$bundle = $this->entityManager
->getStorage('media_bundle')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment