function hook_prod_check_info_alter in Production check & Production monitor 8
Modify the list of available production check plugins.
This hook may be used to modify plugin properties after they have been specified by other modules.
Parameters
array $plugins: An array of all the existing plugin definitions, passed by reference.
See also
\Drupal\prod_check\Plugin\ProdCheckPluginManager
1 invocation of hook_prod_check_info_alter()
- ProdCheckPluginManager::__construct in src/
Plugin/ ProdCheckPluginManager.php - Constructs a ProdCheckPluginManager object.
File
- ./
prod_check.api.php, line 24 - Hooks provided by Production check module.
Code
function hook_prod_check_info_alter(&$plugins) {
if (isset($plugins['devel'])) {
$plugins['devel']['title'] = t('My title');
}
}