Skip to content
Snippets Groups Projects
Commit 2da9bcf1 authored by cyberwolf's avatar cyberwolf Committed by Rajab Natshah
Browse files

Issue #3434418: Automated Drupal 11 compatibility fixes for section_library

parent 904106f9
No related branches found
No related tags found
3 merge requests!30Resolve #3195007 "Allow filter by type",!29Issue #3434418: Automated Drupal 11 compatibility fixes for section_library,!3ISSUE #3228163: Add create or update logic.
......@@ -17,6 +17,6 @@
"source": "http://cgit.drupalcode.org/section_library"
},
"require": {
"drupal/core": "^9 || ^10"
"drupal/core": "^10.3 || ^11"
}
}
name: 'Section Library'
description: 'Create reusable templates for single or multiple sections at the layout builder.'
type: module
core_version_requirement: ^9 || ^10
core_version_requirement: ^10.3 || ^11
package: 'Layout Builder'
dependencies:
- drupal:layout_builder
......
......@@ -2,6 +2,7 @@
namespace Drupal\section_library;
use Drupal\Core\Utility\Error;
use Drupal\layout_builder\Plugin\Block\InlineBlock;
use Drupal\layout_builder\SectionComponent;
use Drupal\layout_builder\Section;
......@@ -108,7 +109,8 @@ trait DeepCloningTrait {
$configuration['block_serialized'] = serialize($duplicate_entity);
}
catch (\ReflectionException $e) {
watchdog_exception('section_library', $e);
$logger = \Drupal::logger('section_library');
Error::logException($logger, $e);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment