domain_config_hook_test.module 534 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * @file
  4. * Hook implementations for this module.
  5. */
  6. /**
  7. * Implements hook_user_login().
  8. */
  9. function domain_config_hook_test_user_login($account) {
  10. \Drupal::state()->set('domain_config_test__user_login', TRUE);
  11. }
  12. /**
  13. * Implements hook_module_implements_alter().
  14. */
  15. function domain_config_hook_test_module_implements_alter(&$implementations, $hook) {
  16. if ($hook == 'user_login') {
  17. // Turn off the domain_config_hook_test's hook_user_login (above).
  18. unset($implementations['domain_config_hook_test']);
  19. }
  20. }