@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | |
213 | 213 | $delta = 0; |
214 | 214 | |
215 | - $order_class = $field_machine_name . '-delta-order'; |
|
215 | + $order_class = $field_machine_name.'-delta-order'; |
|
216 | 216 | |
217 | 217 | $current = [ |
218 | 218 | '#type' => 'table', |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | $current[$entity_id] = [ |
290 | 290 | '#attributes' => [ |
291 | 291 | 'class' => ['draggable'], |
292 | - 'data-entity-id' => $entity->getEntityTypeId() . ':' . $entity_id, |
|
292 | + 'data-entity-id' => $entity->getEntityTypeId().':'.$entity_id, |
|
293 | 293 | ], |
294 | 294 | 'display' => $display, |
295 | 295 | 'filename' => ['#markup' => $entity->label()], |
@@ -346,10 +346,10 @@ discard block |
||
346 | 346 | 'wrapper' => $details_id, |
347 | 347 | ], |
348 | 348 | '#submit' => [[get_class($this), 'removeItemSubmit']], |
349 | - '#name' => $field_machine_name . '_remove_' . $entity_id, |
|
349 | + '#name' => $field_machine_name.'_remove_'.$entity_id, |
|
350 | 350 | '#limit_validation_errors' => [array_merge($field_parents, [$field_machine_name, 'target_id'])], |
351 | 351 | '#attributes' => [ |
352 | - 'data-entity-id' => $entity->getEntityTypeId() . ':' . $entity_id, |
|
352 | + 'data-entity-id' => $entity->getEntityTypeId().':'.$entity_id, |
|
353 | 353 | 'data-row-id' => $weight |
354 | 354 | ], |
355 | 355 | '#access' => (bool) $widget_settings['field_widget_remove'], |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | } |
406 | 406 | |
407 | 407 | // Return ourself as the structure doesn't match the default. |
408 | - usort($return, function ($a, $b) { |
|
408 | + usort($return, function($a, $b) { |
|
409 | 409 | return SortArray::sortByKeyInt($a, $b, '_weight'); |
410 | 410 | }); |
411 | 411 | |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | $data['validators']['file'] = ['validators' => $this->getFileValidators()]; |
466 | 466 | // Provide context for widgets to enhance their configuration. Currently |
467 | 467 | // we only know that "upload_location" is used. |
468 | - $data['widget_context']['upload_location'] = $settings['uri_scheme'] . '://' . $settings['file_directory']; |
|
468 | + $data['widget_context']['upload_location'] = $settings['uri_scheme'].'://'.$settings['file_directory']; |
|
469 | 469 | return $data; |
470 | 470 | } |
471 | 471 |