Commit c4519496 authored by George's avatar George
Browse files

Issue #3297314 - Drupal 10 compatibility fixes.

parent 0b360864
Loading
Loading
Loading
Loading
+1 −1
Changes for composer.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -22,6 +22,6 @@
        "source": "https://git.drupalcode.org/project/gmap_store_locator"
    },
    "require": {
        "drupal/core": "^8.8 || ^9.0"
        "drupal/core": "^9.3 || ^10"
    }
}
+1 −1
Changes for src/Helper/LocationDataHelper.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ class LocationDataHelper {
      if (!empty($fid)) {
        $file = File::load($fid);
        $path = $file->getFileUri();
        $marker_path = Url::fromUri(file_create_url($path))->toString();
        $marker_path = \Drupal::service('file_url_generator')->generate($path)->toString();
      }
    }

+1 −1
Changes for store_locator.info.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -3,4 +3,4 @@ type: module
description: 'Store Locator with Google Maps integration.'
package: 'Location & Map'
configure: store_locator.settings_form
core_version_requirement: ^8.8 || ^9.0
core_version_requirement: ^9.3 || ^10
+1 −1
Changes for store_locator.module: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ function store_locator_entity_view_alter(array &$build, EntityInterface $entity,
    $icon_url = '';
    if (!empty($fid)) {
      $file_entity = File::load($fid);
      $icon_url = file_create_url($file_entity->getFileUri());
      $icon_url = \Drupal::service('file_url_generator')->generateAbsoluteString($file_entity->getFileUri());
    }
    $lat = $build['name']['#object']->get('latitude')->value;
    $lng = $build['name']['#object']->get('longitude')->value;