Issue #2399219 by amateescu: Allow entity form handlers to determine the entity object they need to work with