protected function renderHidden(\Zend\Form\Element\Select $element, array $attributes)
    {
        $attributes['type']  = 'select';
        $attributes['name'] .= '[id]';

//         if (isset($attributes['id'])) {
//             $attributes['id'] .= '-hidden';
//         }

        if (method_exists($element, 'getId')) {
            $attributes['value'] = $element->getId();
        } elseif (array_key_exists('value', $attributes)) {
            if (is_array($attributes['value']) && array_key_exists('id', $attributes['value'])) {
                $attributes['value'] = $attributes['value']['id'];
            }
        }
        $closingBracket      = $this->getInlineClosingBracket();
        
        $hidden              = sprintf(
            '<input %s%s',
            $this->createAttributesString($attributes),
            $closingBracket
        );

        return $hidden;
    }
protected function renderHidden(\Zend\Form\Element\Select $element, array $attributes)
    {
        $attributes['type']  = 'select';
        $attributes['name'] .= '[id]';

//         if (isset($attributes['id'])) {
//             $attributes['id'] .= '-hidden';
//         }

        if (method_exists($element, 'getId')) {
            $attributes['value'] = $element->getId();
        } elseif (array_key_exists('value', $attributes)) {
            if (is_array($attributes['value']) && array_key_exists('id', $attributes['value'])) {
                $attributes['value'] = $attributes['value']['id'];
            }
        }
        $closingBracket      = $this->getInlineClosingBracket();
        
        $hidden              = sprintf(
            '<input %s%s',
            $this->createAttributesString($attributes),
            $closingBracket
        );

        return $hidden;
    }
protected function renderHidden ( \ Zend \ Form \ Element \ Select $ element , array $ attributes ) { $ attributes [ 'type' ] = 'select' ; $ attributes [ 'name' ] .= '[id]' ; //         if (isset($attributes['id'])) { //             $attributes['id'] .= '-hidden'; //         } if ( method_exists ( $ element , 'getId' ) ) { $ attributes [ 'value' ] = $ element -> getId ( ) ; } elseif ( array_key_exists ( 'value' , $ attributes ) ) { if ( is_array ( $ attributes [ 'value' ] ) && array_key_exists ( 'id' , $ attributes [ 'value' ] ) ) { $ attributes [ 'value' ] = $ attributes [ 'value' ] [ 'id' ] ; } } $ closingBracket = $ this -> getInlineClosingBracket ( ) ; $ hidden = sprintf ( '<input %s%s' , $ this -> createAttributesString ( $ attributes ) , $ closingBracket ) ; return $ hidden ; }
Render the hidden input with the captcha identifier

@param  CaptchaAdapter $captcha
@param  array          $attributes
@return string
Render the hidden input with the captcha identifier