You are here

function samlauth_test_user_update in SAML Authentication 4.x

Same name and namespace in other branches
  1. 8.3 test_resources/samlauth_test/samlauth_test.module \samlauth_test_user_update()

Implements hook_ENTITY_TYPE_update().

File

test_resources/samlauth_test/samlauth_test.module, line 42
Helper module for SAML Authentication tests.

Code

function samlauth_test_user_update($account) {
  if (\Drupal::state()
    ->get('samlauth_test_urltostring_mask', 0) & 4) {
    Url::fromRoute('<front>')
      ->toString();
  }
}