@@ -59,8 +59,6 @@ discard block |
||
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 |
||
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. |
@@ -8,7 +8,6 @@ |
||
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. |
@@ -75,7 +75,7 @@ discard block |
||
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 |
||
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', |