public function actionPreview($blockId)
    {
        $blockItem = Block::findOne($blockId);
        if (!$blockItem) {
            throw new NotFoundHttpException();
        }

        /** @var $blockObject \luya\cms\base\InternalBaseBlock */
        $blockObject = $blockItem->getObject('preview', 'admin-preview');

        return $blockObject->renderAdminPreview();
    }
public function actionPreview($blockId)
    {
        $blockItem = Block::findOne($blockId);
        if (!$blockItem) {
            throw new NotFoundHttpException();
        }

        /** @var $blockObject \luya\cms\base\InternalBaseBlock */
        $blockObject = $blockItem->getObject('preview', 'admin-preview');

        return $blockObject->renderAdminPreview();
    }
public function actionPreview ( $ blockId ) { $ blockItem = Block :: findOne ( $ blockId ) ; if ( ! $ blockItem ) { throw new NotFoundHttpException ( ) ; } /** @var $blockObject \luya\cms\base\InternalBaseBlock */ $ blockObject = $ blockItem -> getObject ( 'preview' , 'admin-preview' ) ; return $ blockObject -> renderAdminPreview ( ) ; }
Generate the the block preview.

@param int $blockId
@return string
@throws NotFoundHttpException
@since 1.0.8
Generate the the block preview .