@@ -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 | 'data-row-id' => $delta, |
| 294 | 294 | ], |
| 295 | 295 | 'display' => $display, |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | 'url' => Url::fromRoute('entity_browser.edit_form', ['entity_type' => $entity->getEntityTypeId(), 'entity' => $entity_id]), |
| 339 | 339 | ], |
| 340 | 340 | '#attributes' => [ |
| 341 | - 'data-entity-id' => $entity->getEntityTypeId() . ':' . $entity->id(), |
|
| 341 | + 'data-entity-id' => $entity->getEntityTypeId().':'.$entity->id(), |
|
| 342 | 342 | 'data-row-id' => $delta, |
| 343 | 343 | ], |
| 344 | 344 | '#access' => $can_edit, |
@@ -351,10 +351,10 @@ discard block |
||
| 351 | 351 | 'wrapper' => $details_id, |
| 352 | 352 | ], |
| 353 | 353 | '#submit' => [[get_class($this), 'removeItemSubmit']], |
| 354 | - '#name' => $field_machine_name . '_remove_' . $entity_id, |
|
| 354 | + '#name' => $field_machine_name.'_remove_'.$entity_id, |
|
| 355 | 355 | '#limit_validation_errors' => [array_merge($field_parents, [$field_machine_name, 'target_id'])], |
| 356 | 356 | '#attributes' => [ |
| 357 | - 'data-entity-id' => $entity->getEntityTypeId() . ':' . $entity->id(), |
|
| 357 | + 'data-entity-id' => $entity->getEntityTypeId().':'.$entity->id(), |
|
| 358 | 358 | 'data-row-id' => $delta, |
| 359 | 359 | ], |
| 360 | 360 | '#access' => (bool) $widget_settings['field_widget_remove'], |
@@ -410,7 +410,7 @@ discard block |
||
| 410 | 410 | } |
| 411 | 411 | |
| 412 | 412 | // Return ourself as the structure doesn't match the default. |
| 413 | - usort($return, function ($a, $b) { |
|
| 413 | + usort($return, function($a, $b) { |
|
| 414 | 414 | return SortArray::sortByKeyInt($a, $b, '_weight'); |
| 415 | 415 | }); |
| 416 | 416 | |
@@ -470,7 +470,7 @@ discard block |
||
| 470 | 470 | $data['validators']['file'] = ['validators' => $this->getFileValidators()]; |
| 471 | 471 | // Provide context for widgets to enhance their configuration. Currently |
| 472 | 472 | // we only know that "upload_location" is used. |
| 473 | - $data['widget_context']['upload_location'] = $settings['uri_scheme'] . '://' . $settings['file_directory']; |
|
| 473 | + $data['widget_context']['upload_location'] = $settings['uri_scheme'].'://'.$settings['file_directory']; |
|
| 474 | 474 | return $data; |
| 475 | 475 | } |
| 476 | 476 | |