src/BoomCMS/Chunk/Provider.php
public function find($type, $slotname, PageVersion $version)
    {
        $cached = $this->getFromCache($type, $slotname, $version);

        if ($cached !== false) {
            return $cached;
        }

        $class = $this->getModelName($type);

        $chunk = $version->getId() ?
            $class::getSingleChunk($version, $slotname)->first()
            : null;

        $this->saveToCache($type, $slotname, $version, $chunk);

        return $chunk;
    }
public function find($type, $slotname, PageVersion $version)
    {
        $cached = $this->getFromCache($type, $slotname, $version);

        if ($cached !== false) {
            return $cached;
        }

        $class = $this->getModelName($type);

        $chunk = $version->getId() ?
            $class::getSingleChunk($version, $slotname)->first()
            : null;

        $this->saveToCache($type, $slotname, $version, $chunk);

        return $chunk;
    }
public function find ( $ type , $ slotname , PageVersion $ version ) { $ cached = $ this -> getFromCache ( $ type , $ slotname , $ version ) ; if ( $ cached !== false ) { return $ cached ; } $ class = $ this -> getModelName ( $ type ) ; $ chunk = $ version -> getId ( ) ? $ class :: getSingleChunk ( $ version , $ slotname ) -> first ( ) : null ; $ this -> saveToCache ( $ type , $ slotname , $ version , $ chunk ) ; return $ chunk ; }
Find a chunk by page version, type, and slotname.

@param string      $type
@param string      $slotname
@param PageVersion $version

@return null|BaseChunk
Find a chunk by page version type and slotname .