function tmgmt_smartling_test_user_login in TMGMT Translator Smartling 8.2
Same name and namespace in other branches
- 8.4 modules/tmgmt_smartling_test/tmgmt_smartling_test.module \tmgmt_smartling_test_user_login()
- 8 modules/tmgmt_smartling_test/tmgmt_smartling_test.module \tmgmt_smartling_test_user_login()
- 8.3 modules/tmgmt_smartling_test/tmgmt_smartling_test.module \tmgmt_smartling_test_user_login()
Implements hook_user_login().
File
- modules/
tmgmt_smartling_test/ tmgmt_smartling_test.module, line 11 - Contains hook implementation for testing purposes.
Code
function tmgmt_smartling_test_user_login($account) {
Drupal::logger('tmgmt_smartling')
->info('User @name has logged in.', [
'@name' => $account
->getDisplayName(),
]);
}