Commit b5ffbdb6 authored by Julian Pustkuchen's avatar Julian Pustkuchen
Browse files

Issue #3285668 by Anybody: Add Media-Type/Type-Icons to the Media Library...

Issue #3285668 by Anybody: Add Media-Type/Type-Icons to the Media Library Widget Display [Configuration Update]
parent b9ef339c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ function drowl_media_types_update_8001(&$sandbox) {
  // For existing sites we
  $view = \Drupal::entityTypeManager()->getStorage('view')->load('media_library');
  if (!empty($view)) {
    $viewWidgetDisplay =& $view->storage->getDisplay('widget');
    $viewWidgetDisplay =& $view->getDisplay('widget');
    if (empty($viewWidgetDisplay['display_options']['fields']['bundle'])) {
      // Definition of the new bundle field:
      $bundleField = [