- Issue created by @Anybody
- π©πͺGermany Anybody Porta Westfalica
Looks like we need to replace
/** * Implements hook_form_layout_paragraphs_component_form_alter(). */ function drowl_paragraphs_form_layout_paragraphs_component_form_alter(array &$form, FormStateInterface &$form_state){ // Add backend library form to layout_paragraphs form: $form['#attached']['library'][] = 'drowl_paragraphs/admin'; }
to catch this case.
Let's try to use the more general
/** * Implements hook_preprocess_layout_paragraphs_builder(). */ function drowl_paragraphs_preprocess_layout_paragraphs_builder(array &$variables) { // Add backend library form to layout_paragraphs builder form. $variables['#attached']['library'][] = 'drowl_paragraphs/admin'; }
instead. Hope it's the right one...
- @anybody opened merge request.
- Issue was unassigned.
- Status changed to RTBC
over 1 year ago 12:57pm 24 March 2023 - π©πͺGermany Anybody Porta Westfalica
Tested and works. I'll track β¨ Missing hook to alter ChooseComponentController::list or ::componentMenu Active for possible updates / maintainer feedback from layout_paragraphs.
-
Anybody β
committed 0a3f9d98 on 4.x
Issue #3350182 by Anybody: Library / style drowl_paragraphs/admin...
-
Anybody β
committed 0a3f9d98 on 4.x
- Status changed to Fixed
over 1 year ago 12:59pm 24 March 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
12 months ago 7:33am 17 July 2023 - π©πͺGermany Anybody Porta Westfalica
Doesn't work or doesn't work anymore, really strange.
Here's the regression issue:
β¨ Missing hook to alter ChooseComponentController::list or ::componentMenu Active