Commit 391a838c authored by Wim Leers's avatar Wim Leers Committed by Ben Mullins
Browse files

Issue #3310548 by Wim Leers, wwalc: Dev inspector does not load on 10.0.0-beta1 nor 9.5.0-beta1

parent 000ec790
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -31,6 +31,11 @@ function ckeditor5_dev_help($route_name, RouteMatchInterface $route_match) {
 * Implements hook_library_info_alter().
 */
function ckeditor5_dev_library_info_alter(&$libraries, $extension) {
  if ($extension === 'ckeditor5' && isset($libraries['internal.drupal.ckeditor5'])) {
    $libraries['internal.drupal.ckeditor5']['dependencies'][] = 'ckeditor5_dev/ckeditor5_dev';
  }
  // @todo Remove when Drupal 9.4 is no longer supported.
  // @see https://www.drupal.org/project/drupal/issues/3307186
  if ($extension === 'ckeditor5' && isset($libraries['drupal.ckeditor5'])) {
    $libraries['drupal.ckeditor5']['dependencies'][] = 'ckeditor5_dev/ckeditor5_dev';
  }