@@ -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. |
@@ -61,7 +61,7 @@ |
||
| 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. |
@@ -13,7 +13,6 @@ |
||
| 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 | |
@@ -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', |