class HookXautoloadOperation in X Autoload 7.4
Hierarchy
- class \Drupal\xautoload\FinderOperation\HookXautoloadOperation implements FinderOperationInterface
Expanded class hierarchy of HookXautoloadOperation
2 files declare their use of HookXautoloadOperation
File
- lib/
FinderOperation/ HookXautoloadOperation.php, line 8
Namespace
Drupal\xautoload\FinderOperationView source
class HookXautoloadOperation implements FinderOperationInterface {
/**
* {@inheritdoc}
*/
function operateOnFinder($finder, $helper) {
// Let other modules register stuff to the finder via hook_xautoload().
$classmap_generator = new ClassMapGenerator();
$adapter = new ClassFinderAdapter($finder, $classmap_generator);
$api = new \xautoload_InjectedAPI_hookXautoload($adapter, '');
foreach (module_implements('xautoload') as $module) {
$api
->setExtensionDir($dir = drupal_get_path('module', $module));
$f = $module . '_xautoload';
$f($api, $dir);
}
}
}