yii\base\View::beginBlock PHP Method

beginBlock() public method

This method is a shortcut to beginning [[Block]]
public beginBlock ( string $id, boolean $renderInPlace = false ) : Block
$id string the block ID.
$renderInPlace boolean whether to render the block content in place. Defaults to false, meaning the captured block will not be displayed.
return yii\widgets\Block the Block widget instance
    public function beginBlock($id, $renderInPlace = false)
    {
        return Block::begin(['id' => $id, 'renderInPlace' => $renderInPlace, 'view' => $this]);
    }