FluidTYPO3\Flux\Provider\AbstractProvider::getPreview PHP 메소드

getPreview() 공개 메소드

Default implementation renders the Preview section from the template file that the actual Provider returns for $row, using paths also determined by $row. Example: fluidcontent's Provider returns files and paths based on selected "Fluid Content type" and inherits and uses this method to render a Preview from the template file in the specific path. This default implementation expects the TYPO3 core to render the default header, so it returns NULL as $headerContent.
public getPreview ( array $row ) : array
$row array The record data to be analysed for variables to use in a rendered preview
리턴 array
    public function getPreview(array $row)
    {
        $previewContent = $this->getPreviewView()->getPreview($this, $row);
        return array(NULL, $previewContent, empty($previewContent));
    }