Cal. Fam. Code § 3021
This part applies in any of the following:
(e) A proceeding to determine physical or legal custody or for visitation in a proceeding pursuant to the Domestic Violence Prevention Act (Division 10 (commencing with Section 6200)).
In an action under Section 6323, nothing in this subdivision shall be construed to authorize physical or legal custody, or visitation rights, to be granted to any party to a Domestic Violence Prevention Act proceeding who has not established a parent and child relationship pursuant to paragraph (2) of subdivision (a) of Section 6323.