original_string: public function setup_blocks($pagelayout, $blockmanager) {
          $layoutinfo = $this->layout_info_for_page($pagelayout);
          if (!empty($layoutinfo['regions'])) {
              $blockmanager->add_regions($layoutinfo['regions'], false);
              $blockmanager->set_default_region($layoutinfo['defaultregion']);
          }
      }
code: public function setup_blocks($pagelayout, $blockmanager) {
          $layoutinfo = $this->layout_info_for_page($pagelayout);
          if (!empty($layoutinfo['regions'])) {
              $blockmanager->add_regions($layoutinfo['regions'], false);
              $blockmanager->set_default_region($layoutinfo['defaultregion']);
          }
      }
code_tokens: public function setup_blocks ( $ pagelayout , $ blockmanager ) { $ layoutinfo = $ this -> layout_info_for_page ( $ pagelayout ) ; if ( ! empty ( $ layoutinfo [ 'regions' ] ) ) { $ blockmanager -> add_regions ( $ layoutinfo [ 'regions' ] , false ) ; $ blockmanager -> set_default_region ( $ layoutinfo [ 'defaultregion' ] ) ; } }
docstring: Inform a block_manager about the block regions this theme wants on this
  page layout.
  
  @param string $pagelayout the general type of the page.
  @param block_manager $blockmanager the block_manger to set up.
docstring_tokens: Inform a block_manager about the block regions this theme wants on this page layout .