California Constitution Art. XI, § 8
ARTICLE XI LOCAL GOVERNMENT
(a) The Legislature may provide that counties perform municipal functions at the request of cities within them.
(b) If provided by their respective charters, a county may agree with a city within it to assume and discharge specified municipal functions.