public function includeGeneratedCss()
    {
        $filePath = $this->assetHandlerConnectorManager->getFormzGeneratedFilePath() . '.css';

        $this->assetHandlerConnectorManager->createFileInTemporaryDirectory(
            $filePath,
            function () {
                /** @var MessageContainerDisplayCssAssetHandler $errorContainerDisplayCssAssetHandler */
                $errorContainerDisplayCssAssetHandler = $this->assetHandlerConnectorManager
                    ->getAssetHandlerFactory()
                    ->getAssetHandler(MessageContainerDisplayCssAssetHandler::class);

                /** @var FieldsActivationCssAssetHandler $fieldsActivationCssAssetHandler */
                $fieldsActivationCssAssetHandler = $this->assetHandlerConnectorManager
                    ->getAssetHandlerFactory()
                    ->getAssetHandler(FieldsActivationCssAssetHandler::class);

                $css = $errorContainerDisplayCssAssetHandler->getErrorContainerDisplayCss() . LF;
                $css .= $fieldsActivationCssAssetHandler->getFieldsActivationCss();

                return $css;
            }
        );

        $this->assetHandlerConnectorManager
            ->getPageRenderer()
            ->addCssFile(StringService::get()->getResourceRelativePath($filePath));

        return $this;
    }
public function includeGeneratedCss()
    {
        $filePath = $this->assetHandlerConnectorManager->getFormzGeneratedFilePath() . '.css';

        $this->assetHandlerConnectorManager->createFileInTemporaryDirectory(
            $filePath,
            function () {
                /** @var MessageContainerDisplayCssAssetHandler $errorContainerDisplayCssAssetHandler */
                $errorContainerDisplayCssAssetHandler = $this->assetHandlerConnectorManager
                    ->getAssetHandlerFactory()
                    ->getAssetHandler(MessageContainerDisplayCssAssetHandler::class);

                /** @var FieldsActivationCssAssetHandler $fieldsActivationCssAssetHandler */
                $fieldsActivationCssAssetHandler = $this->assetHandlerConnectorManager
                    ->getAssetHandlerFactory()
                    ->getAssetHandler(FieldsActivationCssAssetHandler::class);

                $css = $errorContainerDisplayCssAssetHandler->getErrorContainerDisplayCss() . LF;
                $css .= $fieldsActivationCssAssetHandler->getFieldsActivationCss();

                return $css;
            }
        );

        $this->assetHandlerConnectorManager
            ->getPageRenderer()
            ->addCssFile(StringService::get()->getResourceRelativePath($filePath));

        return $this;
    }
public function includeGeneratedCss ( ) { $ filePath = $ this -> assetHandlerConnectorManager -> getFormzGeneratedFilePath ( ) . '.css' ; $ this -> assetHandlerConnectorManager -> createFileInTemporaryDirectory ( $ filePath , function ( ) { /** @var MessageContainerDisplayCssAssetHandler $errorContainerDisplayCssAssetHandler */ $ errorContainerDisplayCssAssetHandler = $ this -> assetHandlerConnectorManager -> getAssetHandlerFactory ( ) -> getAssetHandler ( MessageContainerDisplayCssAssetHandler :: class ) ; /** @var FieldsActivationCssAssetHandler $fieldsActivationCssAssetHandler */ $ fieldsActivationCssAssetHandler = $ this -> assetHandlerConnectorManager -> getAssetHandlerFactory ( ) -> getAssetHandler ( FieldsActivationCssAssetHandler :: class ) ; $ css = $ errorContainerDisplayCssAssetHandler -> getErrorContainerDisplayCss ( ) . LF ; $ css .= $ fieldsActivationCssAssetHandler -> getFieldsActivationCss ( ) ; return $ css ; } ) ; $ this -> assetHandlerConnectorManager -> getPageRenderer ( ) -> addCssFile ( StringService :: get ( ) -> getResourceRelativePath ( $ filePath ) ) ; return $ this ; }
Will take care of generating the CSS with the `AssetHandlerFactory`. The
code will be put in a `.css` file in the `typo3temp` directory.

If the file already exists, it is included directly before the code
generation.

@return $this
Will take care of generating the CSS with the AssetHandlerFactory . The code will be put in a . css file in the typo3temp directory .