Kähler–Ricci soliton and $H$-functional