/** * Replace the switch tag based on what step of the loop we're in. * * @param String The tagdata to be parsed * @param Object The channel parser object * @param Mixed The results from the preparse method * * @return String The processed tagdata */ public function replace($tagdata, EE_Channel_data_parser $obj, $pre) { return ee()->TMPL->parse_switch($tagdata, $obj->count(), $obj->prefix()); }