You are here

function hook_sms_gateway_info_alter in SMS Framework 8

Same name and namespace in other branches
  1. 7 sms.api.php \hook_sms_gateway_info_alter()
  2. 2.x sms.api.php \hook_sms_gateway_info_alter()
  3. 2.1.x sms.api.php \hook_sms_gateway_info_alter()

Alter gateway plugin definitions.

This hook gives you a chance to modify gateways after all plugin definitions are discovered.

Parameters

array $gateways: An array of gateway definitions keyed by plugin ID.

1 invocation of hook_sms_gateway_info_alter()
SmsGatewayPluginManager::__construct in src/Plugin/SmsGatewayPluginManager.php
Creates a new SmsGatewayPluginManager instance.

File

./sms.api.php, line 18
SMS Framework hooks.

Code

function hook_sms_gateway_info_alter(array &$gateways) {
  $gateways['log']['label'] = new \Drupal\Core\StringTranslation\TranslatableMarkup('The Logger');
}