yii\widgets\Block::run PHP Method

run() public method

This method stops output buffering and saves the rendering result as a named block in the view.
public run ( )
    public function run()
    {
        $block = ob_get_clean();
        if ($this->renderInPlace) {
            echo $block;
        }
        $this->view->blocks[$this->getId()] = $block;
    }