As entity_browser maintainer seems not interested, I'm linking this here. Maybe it's of interest:

https://www.drupal.org/node/2841017

Comments

ChristianAdamski created an issue. See original summary.

eme’s picture

Title: Generic views style » Generic views style - Apply Media entity browser on other views

For now, if you want to apply it to other Views, you should attach manually your library to your view like this :

/**
 * Implements hook_preprocess_views_view().
 */
function my_module_preprocess_views_view(&$variables) {
  if ($variables['view']->id() === 'my_view_machine_name') {
    $variables['view_array']['#attached']['library'][] = 'media_entity_browser/view';
  }
}
leisurman’s picture

Is this issue related to this one?
https://www.drupal.org/node/2906126

rikki_iki’s picture

Status: Active » Closed (duplicate)
Related issues: +#2768571: Support other views not only media_entity_browser

See related issue for answer.