diff --git a/modules/layout_paragraphs_library/layout_paragraphs_library.module b/modules/layout_paragraphs_library/layout_paragraphs_library.module index aae8c24c1a5385a34bd3e29a9431facd9c655bf2..2c6c408ae0acc58a2ce5c7fd9c25c8ec1ead8240 100644 --- a/modules/layout_paragraphs_library/layout_paragraphs_library.module +++ b/modules/layout_paragraphs_library/layout_paragraphs_library.module @@ -203,3 +203,15 @@ function layout_paragraphs_library_ajax(&$form, FormStateInterface $form_state) return $form_object->successfulAjaxSubmit($form, $form_state); } } + +/** + * Implements hook_library_info_alter(). + * + * Remove once Issue #3502302 "HookCollectorPass fails to correctly register + * module hooks in some contexts" is fixed in core. + * + * @see https://www.drupal.org/project/drupal/issues/3502302 + */ +function layout_paragraphs_library_library_info_alter(&$libraries, $extension): void { + layout_paragraphs_library_info_alter($libraries, $extension); +}