You are here

function entity_legal_test_user_login in Entity Legal 8.2

Same name and namespace in other branches
  1. 4.0.x tests/modules/entity_legal_test/entity_legal_test.module \entity_legal_test_user_login()
  2. 3.0.x tests/modules/entity_legal_test/entity_legal_test.module \entity_legal_test_user_login()

Implements hook_user_login().

File

tests/modules/entity_legal_test/entity_legal_test.module, line 13
Contains entity_legal_test.module

Code

function entity_legal_test_user_login(UserInterface $account) {
  \Drupal::messenger()
    ->addStatus('A status message sample')
    ->addWarning('A warning message sample')
    ->addError('An error message sample');
}