Contao\FormCaptcha::generateLabel PHP Метод

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

Generate the label and return it as string
public generateLabel ( ) : string
Результат string The label markup
    public function generateLabel()
    {
        if ($this->strLabel == '') {
            return '';
        }
        return sprintf('<label for="ctrl_%s" class="mandatory%s"><span class="invisible">%s </span>%s<span class="mandatory">*</span><span class="invisible"> %s</span></label>', $this->strId, $this->strClass != '' ? ' ' . $this->strClass : '', $GLOBALS['TL_LANG']['MSC']['mandatory'], $this->strLabel, $this->getQuestion());
    }