Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Yml file needed in Drupal 8 module for defining RedirectAnonymousSubscriber
services:
<yourmodulename>.event_subscriber:
class: Drupal\<yourmodulename>\EventSubscriber\RedirectAnonymousSubscriber
arguments: []
tags:
- {name: event_subscriber}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment