You are here

function acsf_build_registry in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 acsf.module \acsf_build_registry()

Builds the registry of ACSF compatible class files.

5 calls to acsf_build_registry()
acsf_install in ./acsf.install
Implements hook_install().
acsf_modules_installed in ./acsf.module
Implements hook_modules_installed().
drush_acsf_build_registry in ./acsf.drush.inc
Command callback. Rebuilds the ACSF registry.
drush_acsf_connect_factory in acsf_init/acsf_init.drush.inc
Command callback: Connect a site to a Factory.
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);
}