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']);
        }
    }
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']);
        }
    }
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' ] ) ; } }
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.
Inform a block_manager about the block regions this theme wants on this page layout .