You are here

function hook_commerce_license_type_info_alter in Commerce License 8.2

Modify the list of available License Type 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_license\LicenseTypeManager

1 invocation of hook_commerce_license_type_info_alter()
LicenseTypeManager::__construct in src/LicenseTypeManager.php
Constructs a new LicenseTypeManager object.

File

./commerce_license.api.php, line 33
Hooks provided by the commerce_license module.

Code

function hook_commerce_license_type_info_alter(array &$plugins) {
  $plugins['someplugin']['label'] = t('Better name');
}