Skip to content
Snippets Groups Projects

Issue #3100732: Allow specifying `meta` data on JSON:API objects

Closed Björn Brala requested to merge issue/drupal-3100732:3100732-allow-specifying-meta into 10.1.x
1 file
+ 0
4
Compare changes
  • Side-by-side
  • Inline
  • 5aad36da
    Issue #2588013 by sumthief, aneek, tic2000, droplet, nod_, GuyPaddock,... · 5aad36da
    Lee Rowlands authored
    Issue #2588013 by sumthief, aneek, tic2000, droplet, nod_, GuyPaddock, arunkumark, Manjit.Singh, anil280988, Wim Leers, larowlan, Lendude: <span class="ajax-new-content" style="display:inline-block;"> causes unwanted whitespace
    
    (cherry picked from commit 365452be)
@@ -194,10 +194,6 @@ public static function uploadAjaxCallback(&$form, FormStateInterface &$form_stat
@@ -194,10 +194,6 @@ public static function uploadAjaxCallback(&$form, FormStateInterface &$form_stat
if (isset($form['#file_upload_delta']) && $current_file_count < $form['#file_upload_delta']) {
if (isset($form['#file_upload_delta']) && $current_file_count < $form['#file_upload_delta']) {
$form[$current_file_count]['#attributes']['class'][] = 'ajax-new-content';
$form[$current_file_count]['#attributes']['class'][] = 'ajax-new-content';
}
}
// Otherwise just add the new content class on a placeholder.
else {
$form['#suffix'] .= '<span class="ajax-new-content"></span>';
}
$status_messages = ['#type' => 'status_messages'];
$status_messages = ['#type' => 'status_messages'];
$form['#prefix'] .= $renderer->renderRoot($status_messages);
$form['#prefix'] .= $renderer->renderRoot($status_messages);
Loading