Section 799.78

In any action arising out of the provisions of this chapter, the prevailing party shall be entitled to reasonable attorneys fees and costs. A party shall be deemed a prevailing party for the purposes of this section if the judgment is rendered in his or her favor or where the litigation is dismissed in his or her favor prior to or during the trial, unless the parties otherwise agree in the settlement or compromise.

Location: https://www.weblaws.org/california/codes/ca_civ_code_section_799.78.

Original source: https://­leginfo.­legislature.­ca.­gov/­faces/­codes_displaySection.­xhtml?lawCode=CIV&sectionNum=799.­78.­ External link icon (last accessed December 5, 2016).