Skip to content
Snippets Groups Projects

Issue #3448265 by n.ghunaim: Fix an Error when using Layout Builder permissions with the Section Library module

Closed Issue #3448265 by n.ghunaim: Fix an Error when using Layout Builder permissions with the Section Library module
1 file
+ 8
3
Compare changes
  • Side-by-side
  • Inline
+ 8
3
@@ -113,12 +113,17 @@ class SectionLibraryRender implements TrustedCallbackInterface {
}
}
$current_route_match = \Drupal::service('current_route_match');
$route_name = $current_route_match->getRouteName();
$params = $current_route_match->getParameters()->all();
// Add save template to library link to the template.
$add_template_to_library_url = Url::fromRoute(
'section_library.add_template_to_library',
[
'section_storage_type' => $params['section_storage_type'],
'section_storage' => $params['section_storage'],
'delta' => $params['delta'],
'section_storage_type' => $params['section_storage']->getStorageType(),
'section_storage' => $params['section_storage']->getStorageId(),
'delta' => count($params['section_storage']->getSections()),
Please register or sign in to reply
],
[
'attributes' => [
Loading