Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293442

Method \Drupal\Core\SystemListing::scan not see modules in profile folder

$
0
0

This is the reason why I can install modules from profile sub folder 'modules' (profiles_name/modules/profile_module_name), but this condition "if ($data = $this->moduleData($module)) {" never will be true, because

      $modules_scanner = new SystemListing($profiles);
      $this->moduleData = $all_profiles + $modules_scanner->scan('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.module$/', 'modules');

not analized "profiles_name/modules/profile_module_name" folder, but in common.inc
  $listing = new SystemListingInfo();
  return $listing->scan($mask, $directory, $key, $min_depth);
used SystemListingInfo instead SystemListing, that has overrided "profiles" method.

Viewing all articles
Browse latest Browse all 293442

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>