Habari\FormControl::set_properties PHP Method

set_properties() public method

Set the HTML-related properties of this control
public set_properties ( array $properties, boolean $override = false ) : FormControl
$properties array An array of properties that will be associated to this control's HTML output
$override boolean If true, the supplied properties completely replace the existing ones
return FormControl $this
    public function set_properties($properties, $override = false)
    {
        if ($override) {
            $this->properties = $properties;
        } else {
            $this->properties = array_merge($this->properties, $properties);
        }
        return $this;
    }