From e3a7dc22fdf21cae399534532330cfab478c097d Mon Sep 17 00:00:00 2001 From: Alex Bukach Date: Sun, 11 Feb 2024 08:37:42 -0800 Subject: [PATCH] Made module D10-compatible --- xeno_hero.info.yml | 4 ++-- xeno_hero.install | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xeno_hero.info.yml b/xeno_hero.info.yml index c5dafd7..2f11d85 100644 --- a/xeno_hero.info.yml +++ b/xeno_hero.info.yml @@ -1,7 +1,7 @@ name: Xeno Hero Paragraph Bundle type: module -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9.4 || ^10 description: A reusable Hero Paragraph bundle with parallax and an overlay. package: Paragraphs dependencies: - - paragraphs + - paragraphs:paragraphs diff --git a/xeno_hero.install b/xeno_hero.install index 39032d3..052d101 100644 --- a/xeno_hero.install +++ b/xeno_hero.install @@ -14,7 +14,7 @@ use Drupal\field\Entity\FieldStorageConfig; */ function xeno_hero_update_8001() { // Sets variable for the path. - $path = drupal_get_path('module', 'xeno_hero'); + $path = \Drupal::service('extension.list.module')->getPath('xeno_hero'); // Create field storage. $field_storage_yml = Yaml::parse(file_get_contents($path . '/config/install/field.storage.paragraph.xeno_offset.yml'));