Contao\FormFieldset::parse PHP Метод

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

Parse the template file and return it as string
public parse ( array $arrAttributes = null ) : string
$arrAttributes array An optional attributes array
Результат string The template markup
    public function parse($arrAttributes = null)
    {
        // Return a wildcard in the back end
        if (TL_MODE == 'BE') {
            /** @var BackendTemplate|object $objTemplate */
            $objTemplate = new \BackendTemplate('be_wildcard');
            if ($this->fsType == 'fsStart') {
                $objTemplate->wildcard = '### ' . Utf8::strtoupper($GLOBALS['TL_LANG']['tl_form_field']['fsStart'][0]) . ' ###' . ($this->label ? '<br>' . $this->label : '');
            } else {
                $objTemplate->wildcard = '### ' . Utf8::strtoupper($GLOBALS['TL_LANG']['tl_form_field']['fsStop'][0]) . ' ###';
            }
            return $objTemplate->parse();
        }
        return parent::parse($arrAttributes);
    }