bcubed-8.x-1.0-beta5/modules/bcubed_google_analytics/bcubed_google_analytics.module
modules/bcubed_google_analytics/bcubed_google_analytics.module
<?php
/**
* @file
* BCubed google analytics submodule.
*/
/**
* Implements hook_module_preinstall().
*/
function bcubed_google_analytics_module_preinstall($module) {
// On installation, register generated string dictionary.
if ($module == 'bcubed_google_analytics') {
$string_generator = \Drupal::service('bcubed.string_generator');
$string_generator->registerDictionary('bcubed_google_analytics', [
['key' => 'proxy', 'length' => ['min' => 8, 'max' => 14]],
]);
}
}
