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
2 files
+ 37
8
Compare changes
  • Side-by-side
  • Inline
Files
2
  • f47fff71
    Issue #3242538 by danflanagan8, mounir_abid, cilefen, DigitalFrontiersMedia,... · f47fff71
    Alex Pott authored
    Issue #3242538 by danflanagan8, mounir_abid, cilefen, DigitalFrontiersMedia, super_romeo, smustgrave: Term creation fail with php 8 when override_selector = TRUE
    
    (cherry picked from commit 86c4193f)
@@ -63,15 +63,19 @@ public function form(array $form, FormStateInterface $form_state) {
@@ -63,15 +63,19 @@ public function form(array $form, FormStateInterface $form_state) {
$options[$item->tid] = str_repeat('-', $item->depth) . $item->name;
$options[$item->tid] = str_repeat('-', $item->depth) . $item->name;
}
}
}
}
$form['relations']['parent'] = [
'#type' => 'select',
'#title' => $this->t('Parent terms'),
'#options' => $options,
'#default_value' => $parent,
'#multiple' => TRUE,
];
}
}
 
else {
 
$options = ['<' . $this->t('root') . '>'];
 
$parent = [0];
 
}
 
 
$form['relations']['parent'] = [
 
'#type' => 'select',
 
'#title' => $this->t('Parent terms'),
 
'#options' => $options,
 
'#default_value' => $parent,
 
'#multiple' => TRUE,
 
];
$form['relations']['weight'] = [
$form['relations']['weight'] = [
'#type' => 'textfield',
'#type' => 'textfield',
Loading