FML/CustomUI.php
public function render(\DOMDocument $domDocument)
    {
        $domElement = $domDocument->createElement("custom_ui");

        $settings = $this->getSettings();
        foreach ($settings as $setting => $value) {
            if ($value === null) {
                continue;
            }

            $settingDomElement = $domDocument->createElement($setting);
            $settingDomElement->setAttribute("visible", ($value ? 1 : 0));
            $domElement->appendChild($settingDomElement);
        }

        return $domElement;
    }
public function render(\DOMDocument $domDocument)
    {
        $domElement = $domDocument->createElement("custom_ui");

        $settings = $this->getSettings();
        foreach ($settings as $setting => $value) {
            if ($value === null) {
                continue;
            }

            $settingDomElement = $domDocument->createElement($setting);
            $settingDomElement->setAttribute("visible", ($value ? 1 : 0));
            $domElement->appendChild($settingDomElement);
        }

        return $domElement;
    }
public function render ( \ DOMDocument $ domDocument ) { $ domElement = $ domDocument -> createElement ( "custom_ui" ) ; $ settings = $ this -> getSettings ( ) ; foreach ( $ settings as $ setting => $ value ) { if ( $ value === null ) { continue ; } $ settingDomElement = $ domDocument -> createElement ( $ setting ) ; $ settingDomElement -> setAttribute ( "visible" , ( $ value ? 1 : 0 ) ) ; $ domElement -> appendChild ( $ settingDomElement ) ; } return $ domElement ; }
Render the Custom UI

@param \DOMDocument $domDocument DOMDocument for which the Custom UI should be rendered
@return \DOMElement
Render the Custom UI