On November 30, 2020 . By CodimTh Category: Web Drupal Add functionality when user just logged in in Drupal 8 & 9 Code snippet that can be used to Add functionality when user just logged in in Drupal 8 & 9. function MODULE_user_login($account) { \Drupal::messenger()->addMessage('user just logged in in Drupal 8 & 9'); } Tags : Drupal Tutorial Drupal Tips Drupal Previous PostAlter the username that is displayed for a user in Drupal 8 & 9Next PostAdd functionality when user just logged out in Drupal 8 & 9 Comments Add new comment Your name Subject Comment About text formats Restricted HTML Leave this field blank
Comments