@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | |
| 209 | 209 | $delta = 0; |
| 210 | 210 | |
| 211 | - $order_class = $field_machine_name . '-delta-order'; |
|
| 211 | + $order_class = $field_machine_name.'-delta-order'; |
|
| 212 | 212 | |
| 213 | 213 | $current = [ |
| 214 | 214 | '#type' => 'table', |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | $current[$entity_id] = [ |
| 276 | 276 | '#attributes' => [ |
| 277 | 277 | 'class' => ['draggable'], |
| 278 | - 'data-entity-id' => $entity->getEntityTypeId() . ':' . $entity_id, |
|
| 278 | + 'data-entity-id' => $entity->getEntityTypeId().':'.$entity_id, |
|
| 279 | 279 | 'data-row-id' => $delta, |
| 280 | 280 | ], |
| 281 | 281 | ]; |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | 'options' => ['query' => ['details_id' => $details_id]], |
| 348 | 348 | ], |
| 349 | 349 | '#attributes' => [ |
| 350 | - 'data-entity-id' => $entity->getEntityTypeId() . ':' . $entity->id(), |
|
| 350 | + 'data-entity-id' => $entity->getEntityTypeId().':'.$entity->id(), |
|
| 351 | 351 | 'data-row-id' => $delta, |
| 352 | 352 | ], |
| 353 | 353 | '#access' => $can_edit, |
@@ -360,10 +360,10 @@ discard block |
||
| 360 | 360 | 'wrapper' => $details_id, |
| 361 | 361 | ], |
| 362 | 362 | '#submit' => [[get_class($this), 'removeItemSubmit']], |
| 363 | - '#name' => $field_machine_name . '_remove_' . $entity_id . '_' . md5(json_encode($field_parents)), |
|
| 363 | + '#name' => $field_machine_name.'_remove_'.$entity_id.'_'.md5(json_encode($field_parents)), |
|
| 364 | 364 | '#limit_validation_errors' => [array_merge($field_parents, [$field_machine_name, 'target_id'])], |
| 365 | 365 | '#attributes' => [ |
| 366 | - 'data-entity-id' => $entity->getEntityTypeId() . ':' . $entity->id(), |
|
| 366 | + 'data-entity-id' => $entity->getEntityTypeId().':'.$entity->id(), |
|
| 367 | 367 | 'data-row-id' => $delta, |
| 368 | 368 | ], |
| 369 | 369 | '#access' => (bool) $widget_settings['field_widget_remove'], |
@@ -421,7 +421,7 @@ discard block |
||
| 421 | 421 | } |
| 422 | 422 | |
| 423 | 423 | // Return ourself as the structure doesn't match the default. |
| 424 | - usort($return, function ($a, $b) { |
|
| 424 | + usort($return, function($a, $b) { |
|
| 425 | 425 | return SortArray::sortByKeyInt($a, $b, '_weight'); |
| 426 | 426 | }); |
| 427 | 427 | |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | // Add validators based on our current settings. |
| 485 | 485 | $data['validators']['file'] = ['validators' => $this->getFileValidators()]; |
| 486 | 486 | // Provide context for widgets to enhance their configuration. |
| 487 | - $data['widget_context']['upload_location'] = $settings['uri_scheme'] . '://' . $settings['file_directory']; |
|
| 487 | + $data['widget_context']['upload_location'] = $settings['uri_scheme'].'://'.$settings['file_directory']; |
|
| 488 | 488 | $data['widget_context']['upload_validators'] = $this->getFileValidators(TRUE); |
| 489 | 489 | return $data; |
| 490 | 490 | } |