In file_browser.module, function file_browser_form_alter a class in the wrapper attributes is assigned as a string insted of a form.
We have seen this error when embedding the file browser as modal in CKEditor with the bootstrap theme active.

The error showed in \Drupal\bootstrap\Utility\Atributes::getClasses() which requires an array in the class attribute.

Attached is a patch that fixes the issue.

CommentFileSizeAuthor
file_browser_class_fix.patch448 bytesDenis Danielyan

Comments

Denis Danielyan created an issue. See original summary.

samuel.mortenson’s picture

Status: Needs review » Fixed

Thanks! Looks good to me.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.