little_helpers.api.php in Little helpers 7.2
Document hooks invoked by the little_helpers module.
File
little_helpers.api.phpView source
<?php
/**
* @file
* Document hooks invoked by the little_helpers module.
*/
/**
* Get a list of service specifications.
*
* @return array
* Service specifications keyed by the service name.
*
* @see \Drupal\little_helpers\Services\Spec
*/
function hook_little_helpers_services() {
$info['a'] = '\\SplFixedArray';
$info['b'] = [
'class' => '\\SplQueue',
'calls' => [
[
'push',
[
1,
],
],
[
'push',
[
'@other_service',
],
],
],
];
return $info;
}
/**
* Alter the service specs.
*
* @param array $info
* The array of specs as defined by the modules.
*/
function hook_little_helpers_services_alter(array &$info) {
$info['b']['class'] = '\\SplStack';
}
Functions
Name![]() |
Description |
---|---|
hook_little_helpers_services | Get a list of service specifications. |
hook_little_helpers_services_alter | Alter the service specs. |