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;
    }