Redaxscript\Html\Form::_createInput PHP Method

_createInput() protected method

create the input
Since: 2.6.0
protected _createInput ( string $type = 'text', array $attributeArray = [] ) : Form
$type string type of the input
$attributeArray array attributes of the input
return Form
    protected function _createInput($type = 'text', $attributeArray = [])
    {
        if (is_array($attributeArray)) {
            $attributeArray = array_merge($this->_attributeArray['input'][$type], $attributeArray);
        } else {
            $attributeArray = $this->_attributeArray['input'][$type];
        }
        $inputElement = new Element();
        $inputElement->init('input', $attributeArray);
        $this->append($inputElement);
        return $this;
    }