protected function getErrorText(Result $result)
    {
        /** @var $view StandaloneView */
        $view = Core::instantiate(StandaloneView::class);
        $view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName('EXT:' . ExtensionService::get()->getExtensionKey() . '/Resources/Private/Templates/Error/ConfigurationErrorBlock.html'));
        $layoutRootPath = StringService::get()->getExtensionRelativePath('Resources/Private/Layouts');
        $view->setLayoutRootPaths([$layoutRootPath]);
        $view->assign('result', $result);

        $templatePath = GeneralUtility::getFileAbsFileName('EXT:' . ExtensionService::get()->getExtensionKey() . '/Resources/Public/StyleSheets/Form.ErrorBlock.css');
        $this->pageRenderer->addCssFile(StringService::get()->getResourceRelativePath($templatePath));

        return $view->render();
    }
protected function getErrorText(Result $result)
    {
        /** @var $view StandaloneView */
        $view = Core::instantiate(StandaloneView::class);
        $view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName('EXT:' . ExtensionService::get()->getExtensionKey() . '/Resources/Private/Templates/Error/ConfigurationErrorBlock.html'));
        $layoutRootPath = StringService::get()->getExtensionRelativePath('Resources/Private/Layouts');
        $view->setLayoutRootPaths([$layoutRootPath]);
        $view->assign('result', $result);

        $templatePath = GeneralUtility::getFileAbsFileName('EXT:' . ExtensionService::get()->getExtensionKey() . '/Resources/Public/StyleSheets/Form.ErrorBlock.css');
        $this->pageRenderer->addCssFile(StringService::get()->getResourceRelativePath($templatePath));

        return $view->render();
    }
protected function getErrorText ( Result $ result ) { /** @var $view StandaloneView */ $ view = Core :: instantiate ( StandaloneView :: class ) ; $ view -> setTemplatePathAndFilename ( GeneralUtility :: getFileAbsFileName ( 'EXT:' . ExtensionService :: get ( ) -> getExtensionKey ( ) . '/Resources/Private/Templates/Error/ConfigurationErrorBlock.html' ) ) ; $ layoutRootPath = StringService :: get ( ) -> getExtensionRelativePath ( 'Resources/Private/Layouts' ) ; $ view -> setLayoutRootPaths ( [ $ layoutRootPath ] ) ; $ view -> assign ( 'result' , $ result ) ; $ templatePath = GeneralUtility :: getFileAbsFileName ( 'EXT:' . ExtensionService :: get ( ) -> getExtensionKey ( ) . '/Resources/Public/StyleSheets/Form.ErrorBlock.css' ) ; $ this -> pageRenderer -> addCssFile ( StringService :: get ( ) -> getResourceRelativePath ( $ templatePath ) ) ; return $ view -> render ( ) ; }
Will return an error text from a Fluid view.

@param Result $result
@return string
Will return an error text from a Fluid view .