src/View/SSTemplateParser.php
public function setClosedBlocks($closedBlocks)
    {
        $this->closedBlocks = array();
        foreach ((array) $closedBlocks as $name => $callable) {
            $this->addClosedBlock($name, $callable);
        }
    }
public function setClosedBlocks($closedBlocks)
    {
        $this->closedBlocks = array();
        foreach ((array) $closedBlocks as $name => $callable) {
            $this->addClosedBlock($name, $callable);
        }
    }
public function setClosedBlocks ( $ closedBlocks ) { $ this -> closedBlocks = array ( ) ; foreach ( ( array ) $ closedBlocks as $ name => $ callable ) { $ this -> addClosedBlock ( $ name , $ callable ) ; } }
Set the closed blocks that the template parser should use

This method will delete any existing closed blocks, please use addClosedBlock if you don't
want to overwrite
@param array $closedBlocks
@throws InvalidArgumentException
Set the closed blocks that the template parser should use