src/BoomCMS/Chunk/Provider.php
public function insert($type, $slotname, $page = null)
    {
        if ($page === null || $page === Router::getActivePage()) {
            return $this->edit($type, $slotname, $page);
        }

        return $this->get($type, $slotname, $page);
    }
public function insert($type, $slotname, $page = null)
    {
        if ($page === null || $page === Router::getActivePage()) {
            return $this->edit($type, $slotname, $page);
        }

        return $this->get($type, $slotname, $page);
    }
public function insert ( $ type , $ slotname , $ page = null ) { if ( $ page === null || $ page === Router :: getActivePage ( ) ) { return $ this -> edit ( $ type , $ slotname , $ page ) ; } return $ this -> get ( $ type , $ slotname , $ page ) ; }
Insert a chunk into a page.

@param string    $type
@param string    $slotname
@param null|Page $page

@return mixed
Insert a chunk into a page .