Commit f9bad120 authored by Pravin Gaikwad's avatar Pravin Gaikwad Committed by Neslee Canil Pinto
Browse files

Issue #3298125 by vipin.mittal18, Project Update Bot, JatinGupta40,...

Issue #3298125 by vipin.mittal18, Project Update Bot, JatinGupta40, Rajeshreeputra: Automated Drupal 10 compatibility fixes
parent 043b704d
Loading
Loading
Loading
Loading
+1 −1
Changes for composer.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -21,6 +21,6 @@
        "source": "https://git.drupalcode.org/project/social_media_links"
    },
    "require": {
        "drupal/core": "^8 || ^9"
        "drupal/core": "^8 || ^9 || ^10"
    }
}
+1 −1
Changes for social_media_links.info.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2,4 +2,4 @@ name: Social Media Links Block
description: The module provides a block that display links (icons) to your profiles on various social networking sites.
type: module
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
+2 −2
Changes for src/IconsetFinderService.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ class IconsetFinderService {
    // 'libraries' directory.
    $profile = \Drupal::installProfile();
    if ($profile && strpos($profile, "core") === FALSE) {
      $profile_path = drupal_get_path('profile', $profile);
      $profile_path = \Drupal::service('extension.list.profile')->getPath($profile);
      $searchdirs[] = "$profile_path/libraries";
    }

@@ -86,7 +86,7 @@ class IconsetFinderService {
    $searchdirs[] = "$site_path/libraries";

    // Add the social_media_links module directory.
    $searchdirs[] = drupal_get_path('module', 'social_media_links') . '/libraries';
    $searchdirs[] = \Drupal::service('extension.list.module')->getPath('social_media_links') . '/libraries';

    $this->searchDirs = $searchdirs;
  }