original_string: public function blocks($region, $classes = array(), $tag = 'aside') {
          $displayregion = $this->page->apply_theme_region_manipulations($region);
          $classes = (array)$classes;
          $classes[] = 'block-region';
          $attributes = array(
              'id' => 'block-region-'.preg_replace('#[^a-zA-Z0-9_\-]+#', '-', $displayregion),
              'class' => join(' ', $classes),
              'data-blockregion' => $displayregion,
              'data-droptarget' => '1'
          );
          if ($this->page->blocks->region_has_content($displayregion, $this)) {
              $content = $this->blocks_for_region($displayregion);
          } else {
              $content = '';
          }
          return html_writer::tag($tag, $content, $attributes);
      }
code: public function blocks($region, $classes = array(), $tag = 'aside') {
          $displayregion = $this->page->apply_theme_region_manipulations($region);
          $classes = (array)$classes;
          $classes[] = 'block-region';
          $attributes = array(
              'id' => 'block-region-'.preg_replace('#[^a-zA-Z0-9_\-]+#', '-', $displayregion),
              'class' => join(' ', $classes),
              'data-blockregion' => $displayregion,
              'data-droptarget' => '1'
          );
          if ($this->page->blocks->region_has_content($displayregion, $this)) {
              $content = $this->blocks_for_region($displayregion);
          } else {
              $content = '';
          }
          return html_writer::tag($tag, $content, $attributes);
      }
code_tokens: public function blocks ( $ region , $ classes = array ( ) , $ tag = 'aside' ) { $ displayregion = $ this -> page -> apply_theme_region_manipulations ( $ region ) ; $ classes = ( array ) $ classes ; $ classes [ ] = 'block-region' ; $ attributes = array ( 'id' => 'block-region-' . preg_replace ( '#[^a-zA-Z0-9_\-]+#' , '-' , $ displayregion ) , 'class' => join ( ' ' , $ classes ) , 'data-blockregion' => $ displayregion , 'data-droptarget' => '1' ) ; if ( $ this -> page -> blocks -> region_has_content ( $ displayregion , $ this ) ) { $ content = $ this -> blocks_for_region ( $ displayregion ) ; } else { $ content = '' ; } return html_writer :: tag ( $ tag , $ content , $ attributes ) ; }
docstring: Get the HTML for blocks in the given region.
  
  @since Moodle 2.5.1 2.6
  @param string $region The region to get HTML for.
  @return string HTML.
docstring_tokens: Get the HTML for blocks in the given region .