src/View/Helper/FormHelper.php
protected function _setTemplatesInternal(array $templates) {

        if (is_array($templates)) {

            foreach ($this->_userChangedTemplates as $key) {

                if (array_key_exists($key, $templates)) {
                    unset($templates[$key]);
                }
            }
        }

        $this->_setTemplatesWrapper($templates);
    }
protected function _setTemplatesInternal(array $templates) {

        if (is_array($templates)) {

            foreach ($this->_userChangedTemplates as $key) {

                if (array_key_exists($key, $templates)) {
                    unset($templates[$key]);
                }
            }
        }

        $this->_setTemplatesWrapper($templates);
    }
protected function _setTemplatesInternal ( array $ templates ) { if ( is_array ( $ templates ) ) { foreach ( $ this -> _userChangedTemplates as $ key ) { if ( array_key_exists ( $ key , $ templates ) ) { unset ( $ templates [ $ key ] ) ; } } } $ this -> _setTemplatesWrapper ( $ templates ) ; }
Set templates after removing the ones previously set by the user,
this is to protect against overriding the users wishes

@param array $templates Templates to set

@return void
Set templates after removing the ones previously set by the user this is to protect against overriding the users wishes