src/View/Helper/HtmlHelper.php
public function splicedRows($breakIndex, array $data, callable $determineContent) {
        $rowsHtml = '<div class="row">';

        $count = 1;
        foreach ($data as $index => $colData) {
            $rowsHtml .= $determineContent($colData);

            if ($count % $breakIndex === 0) {
                $rowsHtml .= '<div class="clearfix hidden-xs hidden-sm"></div>';
            }

            $count++;
        }

        $rowsHtml .= '</div>';
        return $rowsHtml;

    }
public function splicedRows($breakIndex, array $data, callable $determineContent) {
        $rowsHtml = '<div class="row">';

        $count = 1;
        foreach ($data as $index => $colData) {
            $rowsHtml .= $determineContent($colData);

            if ($count % $breakIndex === 0) {
                $rowsHtml .= '<div class="clearfix hidden-xs hidden-sm"></div>';
            }

            $count++;
        }

        $rowsHtml .= '</div>';
        return $rowsHtml;

    }
public function splicedRows ( $ breakIndex , array $ data , callable $ determineContent ) { $ rowsHtml = '<div class="row">' ; $ count = 1 ; foreach ( $ data as $ index => $ colData ) { $ rowsHtml .= $ determineContent ( $ colData ) ; if ( $ count % $ breakIndex === 0 ) { $ rowsHtml .= '<div class="clearfix hidden-xs hidden-sm"></div>' ; } $ count ++ ; } $ rowsHtml .= '</div>' ; return $ rowsHtml ; }
Create a formatted collection of elements while
maintaining proper bootstrappy markup. Useful when
displaying, for example, a list of products that would require
more than the maximum number of columns per row.

@deprecated 3.1.0

@param int|string $breakIndex       Divisible index that will trigger a new row
@param array      $data             Collection of data used to render each column
@param callable   $determineContent A callback that will be called with the
data required to render an individual column

@return string
Create a formatted collection of elements while maintaining proper bootstrappy markup . Useful when displaying for example a list of products that would require more than the maximum number of columns per row .