public function insertAt(BlockManagerInterface $element, $at)
    {
        $elements = count($this->blockManagers);

        $leftPart = array_slice($this->blockManagers, 0 , $at);
        $rightPart = array_slice($this->blockManagers, $at , $elements);

        $this->blockManagers = array_merge($leftPart, array($element), $rightPart);

        return array(
            "left" => $leftPart,
            "right" => $rightPart,
        );
    }
public function insertAt(BlockManagerInterface $element, $at)
    {
        $elements = count($this->blockManagers);

        $leftPart = array_slice($this->blockManagers, 0 , $at);
        $rightPart = array_slice($this->blockManagers, $at , $elements);

        $this->blockManagers = array_merge($leftPart, array($element), $rightPart);

        return array(
            "left" => $leftPart,
            "right" => $rightPart,
        );
    }
public function insertAt ( BlockManagerInterface $ element , $ at ) { $ elements = count ( $ this -> blockManagers ) ; $ leftPart = array_slice ( $ this -> blockManagers , 0 , $ at ) ; $ rightPart = array_slice ( $ this -> blockManagers , $ at , $ elements ) ; $ this -> blockManagers = array_merge ( $ leftPart , array ( $ element ) , $ rightPart ) ; return array ( "left" => $ leftPart , "right" => $ rightPart , ) ; }
Inserts a block manager at the specified index

@param  BlockManagerInterface $element
@param  int                     $at
@return array
Inserts a block manager at the specified index