- Issue created by @zubair-rana
This patch should be included in core, it works with version 10.2.3
- Status changed to Needs review
8 months ago 12:32pm 28 March 2024
Bulk forms that are not media_bulk_form are missing and its caused by a new bulk sticky appearing unset($form['header'][$key]);
and static $form['header']['media_bulk_form']['#attributes']['class'][] = 'media-library-views-form__bulk_form';
Drupal version: D10.2.4
Install bulk_form
module as example; VBO
Go to URL "/admin/content/media-grid"
Adding $form['header']['media_bulk_form']['#attributes']['class'][] = 'media-library-views-form__bulk_form';
dynamically as follows;
foreach (Element::children($form['header']) as $key) {
if (str_contains($key, '_bulk_form')) {
$form['header'][$key]['#attributes']['class'][] = 'media-library-views-form__bulk_form';
}
}
Needs review
2.0
Code
This patch should be included in core, it works with version 10.2.3