Gregwar\Formidable\Form::getJs PHP Метод

getJs() публичный Метод

Get the JavaScript code to embed
public getJs ( )
    public function getJs()
    {
        $html = '<script type="text/javascript">';
        $js = file_get_contents(__DIR__ . '/Js/formidable.js');
        $html .= str_replace("\n", '', str_replace('{remove}', $this->factory->getLanguage()->translate('remove'), $js));
        $html .= '</script>';
        return $html;
    }