The Maxwell 1865 equations are recast to the excitation or vortical sector and define a Maxwellian monopole (not magnetic), $E=hf$ emerges.
[See the full post at: Classically Quantised Vacuum Electrodynamics, Part II: Maxwell’s 1865 Monopole Recast and a Classical Derivation of the Einstein–Planck Relation]