function hook_commerce_prorater_info_alter in Commerce Recurring Framework 8
Modify the list of available prorater 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\commerce_recurring\ProraterManager
1 invocation of hook_commerce_prorater_info_alter()
- ProraterManager::__construct in src/
ProraterManager.php - Constructs a new ProraterManager object.
File
- ./
commerce_recurring.api.php, line 24 - Hooks provided by the Commerce Recurring module.
Code
function hook_commerce_prorater_info_alter(array &$plugins) {
$plugins['someplugin']['label'] = t('Better name');
}