protected function setDefaultOptions(array $options = [])
    {
        $this->options = $this->formHelper->mergeOptions($this->allDefaults(), $this->getDefaults());
        $this->options = $this->prepareOptions($options);

        $defaults = $this->setDefaultClasses($options);
        $this->options = $this->formHelper->mergeOptions($this->options, $defaults);

        $this->setupLabel();
    }
protected function setDefaultOptions(array $options = [])
    {
        $this->options = $this->formHelper->mergeOptions($this->allDefaults(), $this->getDefaults());
        $this->options = $this->prepareOptions($options);

        $defaults = $this->setDefaultClasses($options);
        $this->options = $this->formHelper->mergeOptions($this->options, $defaults);

        $this->setupLabel();
    }
protected function setDefaultOptions ( array $ options = [ ] ) { $ this -> options = $ this -> formHelper -> mergeOptions ( $ this -> allDefaults ( ) , $ this -> getDefaults ( ) ) ; $ this -> options = $ this -> prepareOptions ( $ options ) ; $ defaults = $ this -> setDefaultClasses ( $ options ) ; $ this -> options = $ this -> formHelper -> mergeOptions ( $ this -> options , $ defaults ) ; $ this -> setupLabel ( ) ; }
Merge all defaults with field specific defaults and set template if passed.

@param array $options
Merge all defaults with field specific defaults and set template if passed .