Skip to content
Snippets Groups Projects
Commit 1fc92c06 authored by Andrii Podanenko's avatar Andrii Podanenko Committed by Joseph Olstad
Browse files

Issue #3119010 by podarok, xeM8VfDh, douggreen, Suresh Prabhu Parkala,...

Issue #3119010 by podarok, xeM8VfDh, douggreen, Suresh Prabhu Parkala, boromino, jungle, aspilicious, sajid_007, GaëlG, podarok, devdesagar, FatGuyLaughing, Anybody, Raunak.singh, berramou, drupgirl, fgm, joseph.olstad, dksdev01: Drupal 9 Deprecated Code Report
parent c447a9a9
No related branches found
Tags 8.x-3.0-alpha3 8.x-3.0-alpha4
No related merge requests found
......@@ -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,
)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment