@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | */ |
| 304 | 304 | public function getFirstWidget() { |
| 305 | 305 | $instance_ids = $this->getWidgets()->getInstanceIds(); |
| 306 | - $instance_ids = array_filter($instance_ids, function ($id) { |
|
| 306 | + $instance_ids = array_filter($instance_ids, function($id) { |
|
| 307 | 307 | return $this->getWidget($id)->access()->isAllowed(); |
| 308 | 308 | }); |
| 309 | 309 | |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | '_title_callback' => 'Drupal\entity_browser\Controllers\EntityBrowserFormController::title', |
| 394 | 394 | 'entity_browser_id' => $this->id(), |
| 395 | 395 | ], |
| 396 | - ['_permission' => 'access ' . $this->id() . ' entity browser pages'], |
|
| 396 | + ['_permission' => 'access '.$this->id().' entity browser pages'], |
|
| 397 | 397 | ['_admin_route' => \Drupal::config('node.settings')->get('use_admin_theme')] |
| 398 | 398 | ); |
| 399 | 399 | } |
@@ -19,12 +19,12 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * {@inheritdoc} |
| 21 | 21 | */ |
| 22 | - public function getForm(array &$form = [], FormStateInterface &$form_state = NULL) { |
|
| 22 | + public function getForm(array &$form = [], FormStateInterface&$form_state = NULL) { |
|
| 23 | 23 | $element = []; |
| 24 | 24 | /** @var \Drupal\entity_browser\EntityBrowserInterface $browser */ |
| 25 | 25 | $browser = $form_state->getFormObject()->getEntityBrowser(); |
| 26 | 26 | foreach ($this->widget_ids as $id => $label) { |
| 27 | - $name = 'tab_selector_' . $id; |
|
| 27 | + $name = 'tab_selector_'.$id; |
|
| 28 | 28 | $element[$name] = [ |
| 29 | 29 | '#type' => 'button', |
| 30 | 30 | '#attributes' => ['class' => ['tab']], |