I've got an EventSubscriber that I'd like to run for only a specific content type. Is there a way to do this from the services.yml file as an argument or something, or do I just need to check for the entity type in my OnResponse
method?
-
I do think you have to just check in your subscriber. Also, note this related issue: drupal.stackexchange.com/questions/240159/…– sonfdDec 14, 2019 at 3:05
-
Hmm, alright. And yes I've got essentially the same solution as that related issue.– MrweinerDec 14, 2019 at 3:35
Add a comment
|