BootstrapUI\View\Helper\FormHelper::__construct PHP Method

__construct() public method

Construct the widgets and binds the default context providers.
public __construct ( Cake\View\View $View, array $config = [] )
$View Cake\View\View The View this helper is being attached to.
$config array Configuration settings for the helper.
    public function __construct(View $View, array $config = [])
    {
        $this->_defaultConfig = ['align' => 'default', 'errorClass' => null, 'grid' => ['left' => 2, 'middle' => 6, 'right' => 4], 'templates' => $this->_templates + $this->_defaultConfig['templates']] + $this->_defaultConfig;
        if (isset($this->_defaultConfig['templateSet'])) {
            $this->_defaultConfig['templateSet'] = Hash::merge($this->_templateSet, $this->_defaultConfig['templateSet']);
        } else {
            $this->_defaultConfig['templateSet'] = $this->_templateSet;
        }
        $this->_defaultWidgets = $this->_widgets + $this->_defaultWidgets;
        parent::__construct($View, $config);
    }