From 1fc92c06a1cedefc8152609dedb38d8f6f31fba6 Mon Sep 17 00:00:00 2001
From: podarok <podarok@116002.no-reply.drupal.org>
Date: Tue, 15 Dec 2020 12:12:43 -0500
Subject: [PATCH] =?UTF-8?q?Issue=20#3119010=20by=20podarok,=20xeM8VfDh,=20?=
 =?UTF-8?q?douggreen,=20Suresh=20Prabhu=20Parkala,=20boromino,=20jungle,?=
 =?UTF-8?q?=20aspilicious,=20sajid=5F007,=20Ga=C3=ABlG,=20podarok,=20devde?=
 =?UTF-8?q?sagar,=20FatGuyLaughing,=20Anybody,=20Raunak.singh,=20berramou,?=
 =?UTF-8?q?=20drupgirl,=20fgm,=20joseph.olstad,=20dksdev01:=20Drupal=209?=
 =?UTF-8?q?=20Deprecated=20Code=20Report?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 libraries.module | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libraries.module b/libraries.module
index e7fe5be..0c994fa 100644
--- a/libraries.module
+++ b/libraries.module
@@ -168,7 +168,7 @@ function libraries_get_libraries() {
  * https://www.drupal.org/node/2170763
  */
 function libraries_scan_info_files() {
-  $profile = \Drupal\Core\Extension\ExtensionList::getPath('profile', \Drupal::installProfile());
+  $profile = drupal_get_path('profile', \Drupal::installProfile());
   $config = DrupalKernel::findSitePath(\Drupal::request());
 
   // Build a list of directories.
@@ -182,7 +182,7 @@ function libraries_scan_info_files() {
   $files = array();
   foreach ($directories as $dir) {
     if (file_exists($dir)) {
-      $files = array_merge($files, file_scan_directory($dir, '@^[a-z0-9._-]+\.libraries\.info\.yml$@', array(
+      $files = array_merge($files, \Drupal::service('file_system')->scanDirectory($dir, '@^[a-z0-9._-]+\.libraries\.info\.yml$@', array(
         'key' => 'name',
         'recurse' => FALSE,
       )));
-- 
GitLab