FML/Script/Script.php
public function render(\DOMDocument $domDocument)
    {
        $this->loadFeatures($this->features);

        $scriptXml  = $domDocument->createElement("script");
        $scriptText = $this->buildScriptText();

        $scriptComment = $domDocument->createComment($scriptText);
        $scriptXml->appendChild($scriptComment);

        return $scriptXml;
    }
public function render(\DOMDocument $domDocument)
    {
        $this->loadFeatures($this->features);

        $scriptXml  = $domDocument->createElement("script");
        $scriptText = $this->buildScriptText();

        $scriptComment = $domDocument->createComment($scriptText);
        $scriptXml->appendChild($scriptComment);

        return $scriptXml;
    }
public function render ( \ DOMDocument $ domDocument ) { $ this -> loadFeatures ( $ this -> features ) ; $ scriptXml = $ domDocument -> createElement ( "script" ) ; $ scriptText = $ this -> buildScriptText ( ) ; $ scriptComment = $ domDocument -> createComment ( $ scriptText ) ; $ scriptXml -> appendChild ( $ scriptComment ) ; return $ scriptXml ; }
Render the Script

@param \DOMDocument $domDocument DOMDocument for which the Script should be created
@return \DOMElement
Render the Script