Issue #3311480 by pdureau, Grimreaper, DuaelFr: Reduce preprocess hooks usage by adding add_class() & set_attributes() filters
Closes #3413703