🇲🇦Morocco afaouki
/**
* Implements hook_menu_links_discovered_alter().
*/
function mymodule_menu_links_discovered_alter(&$links) {
// Check if Field UI module is enabled.
if (!\Drupal::moduleHandler()->moduleExists('field_ui')) {
// If Field UI is not enabled, remove the layout library link.
unset($links['entity.layout.collection']);
}
}
🇲🇦Morocco afaouki
Corrective Patch remove Layout Library dependency on FieldUI::getRouteBundleParameter() method
🇲🇦Morocco afaouki
🇲🇦Morocco afaouki
afaouki → created an issue. See original summary → .
🇲🇦Morocco afaouki
Patch remove Layout Builder dependency on FieldUI::getRouteBundleParameter() methode
🇲🇦Morocco afaouki