Skip to content
Snippets Groups Projects
Commit 7b693758 authored by Omkar Deshpande's avatar Omkar Deshpande Committed by Ben Mullins
Browse files

Issue #3471974 by omkar-pd, wim leers, bnjmnm: Remove obsolete message about...

Issue #3471974 by omkar-pd, wim leers, bnjmnm: Remove obsolete message about Media Library widget not working when JS aggregation is enabled
parent 845cc231
No related branches found
No related tags found
1 merge request!277#3471974: Remove obsolete message about Media Library widget not working when JS aggregation is enabled
Pipeline #292974 passed
......@@ -483,13 +483,6 @@ function experience_builder_field_widget_complete_form_alter(array &$field_widge
}
if (isset($context['form']['#parents']) && array_search('xb_component_props', $context["form"]["#parents"]) !== FALSE) {
RenderArrayXB::markXB($field_widget_complete_form);
if ($context['widget']->getPluginId() === 'media_library_widget') {
$config = \Drupal::service('config.factory')->getEditable('system.performance');
$js_preprocess = $config->get('js.preprocess');
if (!empty($js_preprocess)) {
$field_widget_complete_form['#suffix'] = 'Warning: This site has JS aggregation enabled. The media library widget will not work unless it is disabled. This will, of course, be addressed soon.';
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment