Skip to content
Snippets Groups Projects
Unverified Commit a721bed4 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3055648 by bnjmnm, alexpott, Krzysztof Domański, phenaproxima, oknate,...

Issue #3055648 by bnjmnm, alexpott, Krzysztof Domański, phenaproxima, oknate, larowlan: Frequent random fail in \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTest

(cherry picked from commit 312ce8ec)
parent 6c2d96c3
Branches
Tags
9 merge requests!1445Issue #2920039: Views' User Name exposed group filter validation,!1298Issue #3240993: Let layout builder render inline block translations,!774Issue #3174569: Example node template file name is incorrect,!497Issue #2463967: Use .user.ini file for PHP settings,!433Resolve #3163663 "Too many open files",!233Resolve #2693787 "Taxonomy term name",!133Resolve #2666286 "Clean up menuui",!112Resolve #3187004 "Drupaldatetime serialization issue",!53Resolve #3181870: Correct typo "the the" in "core/classList" deprecation message.
......@@ -51,6 +51,11 @@ public function viewsForm(array &$form, FormStateInterface $form_state) {
'class' => ['media-library-views-form', 'js-media-library-views-form'],
];
// Add an attribute that identifies the media type displayed in the form.
if (isset($this->view->args[0])) {
$form['#attributes']['data-drupal-media-type'] = $this->view->args[0];
}
// Render checkboxes for all rows.
$form[$this->options['id']]['#tree'] = TRUE;
foreach ($this->view->result as $row_index => $row) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment