public function generateAndIncludeFormzConfigurationJavaScript()
    {
        $formzConfigurationJavaScriptAssetHandler = $this->getFormzConfigurationJavaScriptAssetHandler();
        $fileName = $formzConfigurationJavaScriptAssetHandler->getJavaScriptFileName();

        $this->assetHandlerConnectorManager->createFileInTemporaryDirectory(
            $fileName,
            function () use ($formzConfigurationJavaScriptAssetHandler) {
                return $formzConfigurationJavaScriptAssetHandler->getJavaScriptCode();
            }
        );

        $this->includeJsFile(StringService::get()->getResourceRelativePath($fileName));

        return $this;
    }
public function generateAndIncludeFormzConfigurationJavaScript()
    {
        $formzConfigurationJavaScriptAssetHandler = $this->getFormzConfigurationJavaScriptAssetHandler();
        $fileName = $formzConfigurationJavaScriptAssetHandler->getJavaScriptFileName();

        $this->assetHandlerConnectorManager->createFileInTemporaryDirectory(
            $fileName,
            function () use ($formzConfigurationJavaScriptAssetHandler) {
                return $formzConfigurationJavaScriptAssetHandler->getJavaScriptCode();
            }
        );

        $this->includeJsFile(StringService::get()->getResourceRelativePath($fileName));

        return $this;
    }
public function generateAndIncludeFormzConfigurationJavaScript ( ) { $ formzConfigurationJavaScriptAssetHandler = $ this -> getFormzConfigurationJavaScriptAssetHandler ( ) ; $ fileName = $ formzConfigurationJavaScriptAssetHandler -> getJavaScriptFileName ( ) ; $ this -> assetHandlerConnectorManager -> createFileInTemporaryDirectory ( $ fileName , function ( ) use ( $ formzConfigurationJavaScriptAssetHandler ) { return $ formzConfigurationJavaScriptAssetHandler -> getJavaScriptCode ( ) ; } ) ; $ this -> includeJsFile ( StringService :: get ( ) -> getResourceRelativePath ( $ fileName ) ) ; return $ this ; }
Includes FormZ configuration JavaScript declaration. If the file exists,
it is directly included, otherwise the JavaScript code is calculated,
then put in the cache file.

@return $this
Includes FormZ configuration JavaScript declaration . If the file exists it is directly included otherwise the JavaScript code is calculated then put in the cache file .