A state or local governmental agency, law enforcement officer, prosecuting attorney, clerk of court, or any state or local governmental official acting in an official capacity is immune from civil and criminal liability for an act or omission arising from the registration or enforcement of a foreign protective order or the detention or arrest of a person alleged to have violated a foreign protective order if the act or omission was done in good faith in an effort to comply with this chapter.
Tex. Fam. Code § 88.006