Commit 1f523315 authored by Liam Morland's avatar Liam Morland Committed by Will Hearn
Browse files

Issue #3322200 by jmdeleon, Liam Morland: wxt_ext_media PHP 8.1 deprecation

parent 7c8ad86c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -376,7 +376,7 @@ function wxt_ext_media_js_settings_alter(array &$settings) {
    $settings['ajax'] = [];
  }

  $route_name = \Drupal::routeMatch()->getRouteName();
  $route_name = \Drupal::routeMatch()->getRouteName() ?? '';
  if (strpos($route_name, 'entity_browser') === 0 && isset($settings['ajaxPageState']['libraries'])) {
    $libraries = explode(',', $settings['ajaxPageState']['libraries']);
    // If we pretend EB's iframe library has not been previously loaded, it will