You are here

function hook_acsf_registry in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 acsf.api.php \hook_acsf_registry()

Defines ACSF event handlers.

See api.md.

3 functions implement hook_acsf_registry()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

acsf_acsf_registry in ./acsf.module
Implements hook_acsf_registry().
acsf_duplication_acsf_registry in acsf_duplication/acsf_duplication.module
Implements hook_acsf_registry().
acsf_theme_acsf_registry in acsf_theme/acsf_theme.module
Implements hook_acsf_registry().
1 invocation of hook_acsf_registry()
acsf_build_registry in ./acsf.module
Builds the registry of ACSF compatible class files.

File

./acsf.api.php, line 13
Documents hooks provided by the ACSF module.

Code

function hook_acsf_registry() {
  return [
    'events' => [
      [
        'weight' => -1,
        'type' => 'acsf_install',
        // The below can be just 'YourClassName' if your code does not
        // contain a namespace declaration.
        'class' => '\\Drupal\\your_module\\YourClassName',
        // 'path' is necessary only if the location is non-standard:
        'path' => drupal_get_path('module', 'your_module') . '/classes',
      ],
    ],
  ];
}