original_string: public function grid_start($id = null, $class = null) {
          $gridclass = 'grid-start grid-row-r d-flex flex-wrap row';
          if (is_null($class)) {
              $class = $gridclass;
          } else {
              $class .= ' ' . $gridclass;
          }
          $attributes = array();
          if (!is_null($id)) {
              $attributes['id'] = $id;
          }
          return html_writer::start_div($class, $attributes);
      }
code: public function grid_start($id = null, $class = null) {
          $gridclass = 'grid-start grid-row-r d-flex flex-wrap row';
          if (is_null($class)) {
              $class = $gridclass;
          } else {
              $class .= ' ' . $gridclass;
          }
          $attributes = array();
          if (!is_null($id)) {
              $attributes['id'] = $id;
          }
          return html_writer::start_div($class, $attributes);
      }
code_tokens: public function grid_start ( $ id = null , $ class = null ) { $ gridclass = 'grid-start grid-row-r d-flex flex-wrap row' ; if ( is_null ( $ class ) ) { $ class = $ gridclass ; } else { $ class .= ' ' . $ gridclass ; } $ attributes = array ( ) ; if ( ! is_null ( $ id ) ) { $ attributes [ 'id' ] = $ id ; } return html_writer :: start_div ( $ class , $ attributes ) ; }
docstring: Opens a grid.
  
  Call {@link core_course_management_renderer::grid_column_start()} to create columns.
  
  @param string $id An id to give this grid.
  @param string $class A class to give this grid.
  @return string
docstring_tokens: Opens a grid .