Skip to main content
Category:

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');
}

Riadh Rahmi

Senior Web Developer PHP/Drupal & Laravel

I am a senior web developer, I have experience in planning and developing large scale dynamic web solutions especially in Drupal & Laravel.

Web Posts

Search

Page Facebook