Cal. Civ. Code § 846.1
(a) Except as provided in subdivision (c), an owner of any estate or interest in real property, whether possessory or nonpossessory, who gives permission to the public for entry on or use of the real property pursuant to an agreement with a public or nonprofit agency for purposes of recreational trail use, and is a defendant in a civil action brought by, or on behalf of, a person who is allegedly injured or allegedly suffers damages on the real property, may present a claim to the Department of General Services for reasonable attorney’s fees incurred in this civil action if any of the following occurs:
(b) Except as provided in subdivision (c), a public entity, as defined in Section 831.5 of the Government Code, that gives permission to the public for entry on or use of real property for a recreational purpose, as defined in Section 846, and is a defendant in a civil action brought by, or on behalf of, a person who is allegedly injured or allegedly suffers damages on the real property, may present a claim to the Department of General Services for reasonable attorney’s fees incurred in this civil action if any of the following occurs:
(c) An owner of any estate or interest in real property, whether possessory or nonpossessory, or a public entity, as defined in Section 831.5 of the Government Code, that gives permission to the public for entry on, or use of, the real property for a recreational purpose, as defined in Section 846, pursuant to an agreement with a public or nonprofit agency, and is a defendant in a civil action brought by, or on behalf of, a person who seeks to restrict, prevent, or delay public use of that property, may present a claim to the Department of General Services for reasonable attorney’s fees incurred in the civil action if any of the following occurs: