Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xeno_hero.info.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion xeno_hero.install
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down