Contao\FormSubmit::generate PHP Метод

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

Generate the widget and return it as string
public generate ( ) : string
Результат string The widget markup
    public function generate()
    {
        if ($this->src) {
            return sprintf('<input type="image" src="%s" id="ctrl_%s" class="submit%s" title="%s" alt="%s"%s%s', $this->src, $this->strId, $this->strClass != '' ? ' ' . $this->strClass : '', \StringUtil::specialchars($this->slabel), \StringUtil::specialchars($this->slabel), $this->getAttributes(), $this->strTagEnding);
        }
        // Return the regular button
        return sprintf('<button type="submit" id="ctrl_%s" class="submit%s"%s>%s</button>', $this->strId, $this->strClass != '' ? ' ' . $this->strClass : '', $this->getAttributes(), $this->slabel);
    }