You are here

tmgmt_smartling_test.module in TMGMT Translator Smartling 8

Contains hook implementation for testing purposes.

File

modules/tmgmt_smartling_test/tmgmt_smartling_test.module
View 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(),
  ]);
}