Pull merge.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / hook / user_logout.twig
1 /**
2  * Implements hook_user_logout().
3  */
4 function {{ machine_name }}_user_logout(AccountInterface $account) {
5   \Drupal::database()->insert('logouts')
6     ->fields([
7       'uid' => $account->id(),
8       'time' => time(),
9     ])
10     ->execute();
11 }