function autoload_extensions in Autoload 7.2
Same name and namespace in other branches
- 7 autoload.module \autoload_extensions()
Get list of file extensions which allowed for autoloading.
Return value
string[] List of extensions.
2 calls to autoload_extensions()
- AutoloadCache::rebuild in ./
autoload.cache.inc - Rebuild the autoloading map.
- ExtensionsTest::assertExtensions in src/
Tests/ Unit/ ExtensionsTest.php - Assert registered extensions for autoloading.
File
- ./
autoload.module, line 79
Code
function autoload_extensions() {
$extensions = array_filter(explode(',', spl_autoload_extensions()), 'trim');
// Make sure the basic extensions are registered!
$extensions[] = '.php';
$extensions[] = '.inc';
return array_unique($extensions);
}