@@ -12,7 +12,6 @@ discard block |
||
12 | 12 | use Drupal\Core\Entity\EntityInterface; |
13 | 13 | use Drupal\Core\Routing\RouteMatchInterface; |
14 | 14 | use Drupal\Core\Url; |
15 | -use Drupal\entity_browser\DisplayAjaxInterface; |
|
16 | 15 | use Drupal\entity_browser\DisplayBase; |
17 | 16 | use Drupal\entity_browser\DisplayRouterInterface; |
18 | 17 | use Drupal\entity_browser\Events\Events; |
@@ -21,7 +20,6 @@ discard block |
||
21 | 20 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
22 | 21 | use Drupal\Core\Path\CurrentPathStack; |
23 | 22 | use Drupal\Core\Ajax\AjaxResponse; |
24 | -use Drupal\Core\Ajax\CloseDialogCommand; |
|
25 | 23 | use Drupal\entity_browser\Ajax\SelectEntitiesCommand; |
26 | 24 | use Symfony\Component\HttpKernel\Event\FilterResponseEvent; |
27 | 25 | use Symfony\Component\HttpKernel\KernelEvents; |
@@ -16,8 +16,6 @@ |
||
16 | 16 | use Drupal\Core\Field\WidgetBase; |
17 | 17 | use Drupal\Core\Form\FormStateInterface; |
18 | 18 | use Drupal\Core\Plugin\ContainerFactoryPluginInterface; |
19 | -use Drupal\entity_browser\Events\Events; |
|
20 | -use Drupal\entity_browser\Events\RegisterJSCallbacks; |
|
21 | 19 | use Drupal\entity_browser\FieldWidgetDisplayManager; |
22 | 20 | use Symfony\Component\DependencyInjection\ContainerInterface; |
23 | 21 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
@@ -8,10 +8,7 @@ |
||
8 | 8 | |
9 | 9 | use Drupal\Component\Utility\NestedArray; |
10 | 10 | use Drupal\Core\Form\FormStateInterface; |
11 | -use Drupal\Core\TypedData\DataDefinition; |
|
12 | -use Drupal\Core\TypedData\TypedData; |
|
13 | 11 | use Drupal\entity_browser\WidgetBase; |
14 | -use Drupal\file\Plugin\Field\FieldType\FileItem; |
|
15 | 12 | |
16 | 13 | /** |
17 | 14 | * Uses a view to provide entity listing in a browser's widget. |