function abjs_install in A/B Test JS 8
Same name and namespace in other branches
- 7 abjs.install \abjs_install()
- 2.0.x abjs.install \abjs_install()
Implements hook_install().
File
- ./
abjs.install, line 17 - Install, update and uninstall functions for the abjs module.
Code
function abjs_install() {
$messenger = \Drupal::messenger();
$messenger
->addStatus(t('Module <em class="placeholder">A/B Test JS</em> has been enabled.'));
$messenger
->addStatus(t('Thanks for installing A/B Test JS'));
$messenger
->addStatus(t('Settings on <a href="@url_settings">Home » Admin » Config » User interface » A/B Test JS</a> or <a href="@url_settings">@url_settings</a>', [
'@url_settings' => Url::fromRoute('abjs.settings_admin')
->toString(),
]));
}