How can an event subscriber have access to entity type?

by steve   Last Updated November 17, 2017 23:07 PM

I think I'm missing something easy. I'm using entity_print for PDF generation on two node types. I'd like each to have it's own orientation configuration (or just have one override the default). There is an event in entity_print where configuration can be set at runtime, so I have a simple event subscriber, with a method to override the orientation, but I can't seem to get the last piece, which is the entity (bundle label) to switch on.



Related Questions


Caching Event Subcriber

Updated March 13, 2016 08:03 AM



Event Subscriber Drupal8

Updated January 11, 2019 06:07 AM