public function TestSamlauthEventSubscriber::onUserSync in SAML Authentication 4.x
Same name and namespace in other branches
- 8.3 test_resources/samlauth_test/src/EventSubscriber/TestSamlauthEventSubscriber.php \Drupal\samlauth_test\EventSubscriber\TestSamlauthEventSubscriber::onUserSync()
Performs actions to synchronize users with SAML data on login.
Parameters
\Drupal\samlauth\Event\SamlauthUserSyncEvent $event: The event.
File
- test_resources/
samlauth_test/ src/ EventSubscriber/ TestSamlauthEventSubscriber.php, line 31
Class
- TestSamlauthEventSubscriber
- Event subscriber that subscribes to Samlauth events for testing.
Namespace
Drupal\samlauth_test\EventSubscriberCode
public function onUserSync(SamlauthUserSyncEvent $event) {
if (\Drupal::state()
->get('samlauth_test_urltostring_mask', 0) & 8) {
Url::fromRoute('<front>')
->toString();
}
}