Completed
Pull Request — 8.x-1.x (#126)
by Janez
02:09
created
src/EntityBrowserInterface.php 2 patches
Doc Comments   -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,6 @@  discard block
 block discarded – undo
59 59
   /**
60 60
    * Sets the id of the widget selector plugin
61 61
    *
62
-   * @param string $display
63
-   *   The id of the widget selector plugin.
64 62
    *
65 63
    * @return \Drupal\entity_browser\EntityBrowserInterface
66 64
    *   The class instance this method is called on.
@@ -70,8 +68,6 @@  discard block
 block discarded – undo
70 68
   /**
71 69
    * Sets the id of the selection display plugin
72 70
    *
73
-   * @param string $display
74
-   *   The id of the selection display plugin.
75 71
    *
76 72
    * @return \Drupal\entity_browser\EntityBrowserInterface
77 73
    *   The class instance this method is called on.
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 namespace Drupal\entity_browser;
9 9
 
10 10
 use Drupal\Core\Config\Entity\ConfigEntityInterface;
11
-use Drupal\Core\Form\FormStateInterface;
12 11
 
13 12
 /**
14 13
  * Provides an interface defining an entity browser entity.
Please login to merge, or discard this patch.
src/Form/GeneralInfoConfig.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
    *
62 62
    * @param \Drupal\entity_browser\DisplayManager $display_manager
63 63
    *   Entity browser display plugin manager.
64
-   * @param \Drupal\entity_browser\WidgetSelectorManager $widget_selector
64
+   * @param \Drupal\entity_browser\WidgetSelectorManager $widget_selector_manager
65 65
    *   Entity browser widget selector plugin manager.
66 66
    * @param \Drupal\entity_browser\SelectionDisplayManager
67 67
    *   Entity browser selection display plugin manager.
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 use Drupal\entity_browser\SelectionDisplayManager;
14 14
 use Drupal\entity_browser\WidgetManager;
15 15
 use Drupal\entity_browser\WidgetSelectorManager;
16
-use Drupal\user\SharedTempStore;
17 16
 use Drupal\user\SharedTempStoreFactory;
18 17
 use Symfony\Component\DependencyInjection\ContainerInterface;
19 18
 
Please login to merge, or discard this patch.
src/Form/WidgetsConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     $form['widget'] = [
76 76
       '#type' => 'select',
77 77
       '#title' => $this->t('Add widget plugin'),
78
-      '#options' => ['_none_' => '- ' . $this->t('Select a widget to add it') . ' -'] + $widgets,
78
+      '#options' => ['_none_' => '- '.$this->t('Select a widget to add it').' -'] + $widgets,
79 79
       '#ajax' => [
80 80
         'callback' => [get_class($this), 'addWidgetCallback'],
81 81
         'wrapper' => 'widgets',
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
       $row['remove'] = [
126 126
         '#type' => 'submit',
127 127
         '#value' => $this->t('Delete'),
128
-        '#name' => 'remove' . $uuid,
128
+        '#name' => 'remove'.$uuid,
129 129
         '#ajax' => [
130 130
           'callback' => [get_class($this), 'addWidgetCallback'],
131 131
           'wrapper' => 'widgets',
Please login to merge, or discard this patch.