tmgmt_smartling_test.module in TMGMT Translator Smartling 8
Same filename and directory in other branches
Contains hook implementation for testing purposes.
File
modules/tmgmt_smartling_test/tmgmt_smartling_test.moduleView source
<?php
/**
* @file
* Contains hook implementation for testing purposes.
*/
/**
* Implements hook_user_login().
*/
function tmgmt_smartling_test_user_login($account) {
Drupal::logger('tmgmt_smartling')
->info('User @name has logged in.', [
'@name' => $account
->getDisplayName(),
]);
}
/**
* Implements hook_user_logout().
*/
function tmgmt_smartling_test_user_logout($account) {
Drupal::logger('tmgmt_smartling')
->info('User @name has logged out.', [
'@name' => $account
->getDisplayName(),
]);
}
Functions
Name | Description |
---|---|
tmgmt_smartling_test_user_login | Implements hook_user_login(). |
tmgmt_smartling_test_user_logout | Implements hook_user_logout(). |