yii\base\View::beginBlock PHP Метод

beginBlock() публичный Метод

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.
Результат yii\widgets\Block the Block widget instance
    public function beginBlock($id, $renderInPlace = false)
    {
        return Block::begin(['id' => $id, 'renderInPlace' => $renderInPlace, 'view' => $this]);
    }