An action to set aside or contest the validity of a revocable inter vivos trust agreement or declaration of trust to which a legacy is provided by the settlor's will which is admitted to probate, shall be commenced within and not after the time to contest the validity of a will as provided in the Probate Act of 1975 as amended.
735 ILCS 5/13-223