src/Forms/Fields/Types/ChoiceType.php
protected function setLayout($expanded = false, $multiple = false)
    {
        if ($expanded && false === $multiple) {
            $this->layout = 'radio';
        } elseif ($expanded && $multiple) {
            $this->layout = 'checkbox';
        }

        return $this;
    }
protected function setLayout($expanded = false, $multiple = false)
    {
        if ($expanded && false === $multiple) {
            $this->layout = 'radio';
        } elseif ($expanded && $multiple) {
            $this->layout = 'checkbox';
        }

        return $this;
    }
protected function setLayout ( $ expanded = false , $ multiple = false ) { if ( $ expanded && false === $ multiple ) { $ this -> layout = 'radio' ; } elseif ( $ expanded && $ multiple ) { $ this -> layout = 'checkbox' ; } return $ this ; }
Set the field layout option.

@param bool $expanded
@param bool $multiple

@return $this
Set the field layout option .