src/BoomCMS/Chunk/Provider.php
public function findById($type, $chunkId)
    {
        $model = $this->getModelName($type);

        return $model::find($chunkId);
    }
public function findById($type, $chunkId)
    {
        $model = $this->getModelName($type);

        return $model::find($chunkId);
    }
public function findById ( $ type , $ chunkId ) { $ model = $ this -> getModelName ( $ type ) ; return $ model :: find ( $ chunkId ) ; }
Find a chunk by it's ID.

@param string $type
@param int    $chunkId

@return ChunkModel
Find a chunk by it s ID .