function acsf_build_registry in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 acsf.module \acsf_build_registry()
Builds the registry of ACSF compatible class files.
5 calls to acsf_build_registry()
- AcsfCommands::buildRegistry in src/
Commands/ AcsfCommands.php - Rebuilds the ACSF registry.
- AcsfInitCommands::connectFactory in acsf_init/
src/ Commands/ AcsfInitCommands.php - Connect a site to a factory by setting up the right database variables.
- acsf_install in ./
acsf.install - Implements hook_install().
- acsf_modules_installed in ./
acsf.module - Implements hook_modules_installed().
- RouteSubscriber::alterRoutes in src/
Routing/ RouteSubscriber.php - Alters existing routes for a specific collection.
File
- ./
acsf.module, line 21 - Acquia Cloud Site Factory Connector.
Code
function acsf_build_registry() {
// Create a registry of ACSF compatible classes.
$registry = \Drupal::moduleHandler()
->invokeAll('acsf_registry');
usort($registry['events'], 'acsf_registry_sort');
\Drupal::service('acsf.variable_storage')
->set('acsf_registry', $registry);
}