protected function ExtensionDiscovery::process
protected ExtensionDiscovery::process(array $all_files)
Processes the filtered and sorted list of extensions.
Extensions discovered in later search paths override earlier, unless they are not compatible with the current version of Drupal core.
Parameters
\Drupal\Core\Extension\Extension[] $all_files: The sorted list of all extensions that were found.
Return value
\Drupal\Core\Extension\Extension[] The filtered list of extensions, keyed by extension name.
File
- core/lib/Drupal/Core/Extension/ExtensionDiscovery.php, line 380
Class
- ExtensionDiscovery
- Discovers available extensions in the filesystem.
Namespace
Drupal\Core\ExtensionCode
protected function process(array $all_files) { $files = array(); // Duplicate files found in later search directories take precedence over // earlier ones; they replace the extension in the existing $files array. foreach ($all_files as $file) { $files[$file->getName()] = $file; } return $files; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Extension!ExtensionDiscovery.php/function/ExtensionDiscovery::process/8.1.x