1 system.api.php hook_autoload_info_alter(&$class_registry)

Perform alterations to the list of classes included in the registry.

This hook may be used to modify the list of classes and interfaces used by Backdrop that have been provided by other modules. If your module is defining it's own classes or interfaces, it should use hook_autoload_info() instead.

Parameters

$class_registry: List of classes in the registry.

See also

backdrop_autoload()

hook_autoload_info()

Related topics

File

core/modules/system/system.api.php, line 3256
Hooks provided by Backdrop core and the System module.

Code

function hook_autoload_info_alter(&$class_registry) {
  // Replace the database cache with a different database cache.
  $class_registry['BackdropDatabaseCache'] = 'alternative/path/to/cache.inc';
}