function hook_configuration_handlers_alter in Configuration Management 7.2
Alter the handlers to manage configurations.
The hook is implemented to provide new handlers to manage configurations not covered by configuration handler or to modify the main handler that handle a certain configuration.
Parameters
array $handlers: The array of already defined handlers.
See also
configuration_configuration_handlers().
1 invocation of hook_configuration_handlers_alter()
- configuration_configuration_handlers in ./
configuration.module - Define basic handlers().
File
- ./
configuration.api.php, line 20 - Hooks for configuration module.
Code
function hook_configuration_handlers_alter(&$handlers) {
// Define a new configuration handler to manage 'Foo' configurations.
// A FooConfiguration.php file must be placed into
// yourmodule/lib/Drupal/yourmodule/Config
$handlers['foo'] = '\\Drupal\\yourmodule\\Config\\FooConfiguration';
// Modify an existen handler.
$handlers['variable'] = '\\Drupal\\yourmodule\\Config\\CustomVariableConfiguration';
}