public function detachHelper($helperName, FormHelperInterface $helper)
    {
        if ($this->isValidKey($helperName)) {
            if (is_null($formHelperType = $this->resolveHelperType($helper))) {
                throw new InvalidArgumentException('Unkown form helper instance given');
            }

            if ($this->hasHelper($formHelperType)) {
                $this->getHelperMap()->get($formHelperType)->remove($helperName);
            }
        } else {
            throw new InvalidArgumentException('Not able to detach helper because invalid helper name given');
        }
        return $this;
    }
public function detachHelper($helperName, FormHelperInterface $helper)
    {
        if ($this->isValidKey($helperName)) {
            if (is_null($formHelperType = $this->resolveHelperType($helper))) {
                throw new InvalidArgumentException('Unkown form helper instance given');
            }

            if ($this->hasHelper($formHelperType)) {
                $this->getHelperMap()->get($formHelperType)->remove($helperName);
            }
        } else {
            throw new InvalidArgumentException('Not able to detach helper because invalid helper name given');
        }
        return $this;
    }
public function detachHelper ( $ helperName , FormHelperInterface $ helper ) { if ( $ this -> isValidKey ( $ helperName ) ) { if ( is_null ( $ formHelperType = $ this -> resolveHelperType ( $ helper ) ) ) { throw new InvalidArgumentException ( 'Unkown form helper instance given' ) ; } if ( $ this -> hasHelper ( $ formHelperType ) ) { $ this -> getHelperMap ( ) -> get ( $ formHelperType ) -> remove ( $ helperName ) ; } } else { throw new InvalidArgumentException ( 'Not able to detach helper because invalid helper name given' ) ; } return $ this ; }
remove form helper

@param       string                  $helperName     form helper name
@param       FormHelperInterface     $helper         form helper instance
@return      FormHelperMap       form helper map for fluent interface

@throws      InvalidArgumentException
remove form helper