/**
* Construct the widgets and binds the default context providers.
*
* @param \Cake\View\View $View The View this helper is being attached to.
* @param array $config Configuration settings for the helper.
*/
public function __construct(View $View, array $config = [])
{
$this->_defaultConfig['errorClass'] = null;
$this->_defaultConfig['templates'] = array_merge($this->_defaultConfig['templates'], ['error' => '<div class="text-danger">{{content}}</div>', 'inputContainer' => '<div class="form-group">{{content}}</div>', 'inputContainerError' => '<div class="form-group has-error">{{content}}{{error}}</div>', 'checkboxWrapper' => '<div class="checkbox"><label>{{input}}{{label}}</label></div>', 'radioWrapper' => '<div class="radio"><label>{{input}}{{label}}</label></div>']);
$this->_defaultWidgets = array_merge($this->_defaultWidgets, ['button' => 'BootstrapUI\\View\\Widget\\ButtonWidget']);
parent::__construct($View, $config);
}