public function grid_column_start($size, $id = null, $class = null) {

        if ($id == 'course-detail') {
            $size = 12;
            $bootstrapclass = 'col-md-'.$size;
        } else {
            $bootstrapclass = 'd-flex flex-wrap px-3 mb-3';
        }

        $yuigridclass = "col-sm";

        if (is_null($class)) {
            $class = $yuigridclass . ' ' . $bootstrapclass;
        } else {
            $class .= ' ' . $yuigridclass . ' ' . $bootstrapclass;
        }
        $attributes = array();
        if (!is_null($id)) {
            $attributes['id'] = $id;
        }
        return html_writer::start_div($class . " grid_column_start", $attributes);
    }
public function grid_column_start($size, $id = null, $class = null) {

        if ($id == 'course-detail') {
            $size = 12;
            $bootstrapclass = 'col-md-'.$size;
        } else {
            $bootstrapclass = 'd-flex flex-wrap px-3 mb-3';
        }

        $yuigridclass = "col-sm";

        if (is_null($class)) {
            $class = $yuigridclass . ' ' . $bootstrapclass;
        } else {
            $class .= ' ' . $yuigridclass . ' ' . $bootstrapclass;
        }
        $attributes = array();
        if (!is_null($id)) {
            $attributes['id'] = $id;
        }
        return html_writer::start_div($class . " grid_column_start", $attributes);
    }
public function grid_column_start ( $ size , $ id = null , $ class = null ) { if ( $ id == 'course-detail' ) { $ size = 12 ; $ bootstrapclass = 'col-md-' . $ size ; } else { $ bootstrapclass = 'd-flex flex-wrap px-3 mb-3' ; } $ yuigridclass = "col-sm" ; if ( is_null ( $ class ) ) { $ class = $ yuigridclass . ' ' . $ bootstrapclass ; } else { $ class .= ' ' . $ yuigridclass . ' ' . $ bootstrapclass ; } $ attributes = array ( ) ; if ( ! is_null ( $ id ) ) { $ attributes [ 'id' ] = $ id ; } return html_writer :: start_div ( $ class . " grid_column_start" , $ attributes ) ; }
Opens a grid column

@param int $size The number of segments this column should span.
@param string $id An id to give the column.
@param string $class A class to give the column.
@return string
Opens a grid column