function autoload_extensions in Autoload 7
Same name and namespace in other branches
- 7.2 autoload.module \autoload_extensions()
Get list of file extensions which allowed for autoloading.
Return value
string[] List of extensions.
2 calls to autoload_extensions()
- autoload_seek_classes in ./
autoload.module - Seek classes by base of a namespace.
- AuxiliaryTest::assertExtensions in src/
Tests/ Unit/ AuxiliaryTest.php - Assert registered extensions for autoloading.
File
- ./
autoload.module, line 137
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);
}