- 🇬🇧United Kingdom joehuggans Harrogate, UK
Drupal 10 did the following:
function MY_MODULE_preprocess_views_view(&$variables) { if ($variables['view']->id() === 'MACHINE_NAME_OF_VIEW') { $variables['#attached']['library'][] = 'media_entity_browser/view'; } }