Skip to content

Commit 4ddacf1

Browse files
committed
Drupal 10 compatibility
1 parent 2720b3e commit 4ddacf1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

os2web_logging.info.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: 'OS2Web logging'
22
description: 'Logs access selected content type or webform elements.'
33
type: module
44
package: 'OS2Web'
5-
core: 8.x
6-
core_version_requirement: ^8 || ^9
5+
core_version_requirement: ^9 || ^10
76
configure: os2web_logging.settings
87
dependencies:
98
- monolog

os2web_logging.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use Symfony\Component\Yaml\Yaml;
99
* String.
1010
*/
1111
function os2web_logging_read_in_new_config($config_name) {
12-
$path = drupal_get_path('module', 'os2web_logging');
12+
$path = \Drupal::service('extension.list.module')->getPath('os2web_logging');
1313
/** @var \Drupal\Core\Config\StorageInterface $active_storage */
1414
$active_storage = \Drupal::service('config.storage');
1515
$active_storage->write($config_name, Yaml::parse(file_get_contents($path . '/config/install/' . $config_name . '.yml')));

0 commit comments

Comments
 (0)