Contao\FormSelectMenu::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)
    {
        $strClass = 'select';
        if ($this->multiple) {
            $this->strName .= '[]';
            $strClass = 'multiselect';
        } elseif (is_array($this->varValue)) {
            $this->varValue = $this->varValue[0];
        }
        // Chosen
        if ($this->chosen) {
            $strClass .= ' tl_chosen';
        }
        // Custom class
        if ($this->strClass != '') {
            $strClass .= ' ' . $this->strClass;
        }
        $this->strClass = $strClass;
        return parent::parse($arrAttributes);
    }