protected function prepareElement($element)
    {
        $options    = $this->getOptions();
        $currClass  = $element->getAttribute('class');
        $class      = $currClass . (null !== $currClass ? ' ' : '') . $options['class'];

        $element->setAttributes(array(
            'class'             => $class,
            'data-color'        => $options['color'],
            'data-color-format' => $options['format'],
        ));

        return $element;
    }
protected function prepareElement($element)
    {
        $options    = $this->getOptions();
        $currClass  = $element->getAttribute('class');
        $class      = $currClass . (null !== $currClass ? ' ' : '') . $options['class'];

        $element->setAttributes(array(
            'class'             => $class,
            'data-color'        => $options['color'],
            'data-color-format' => $options['format'],
        ));

        return $element;
    }
protected function prepareElement ( $ element ) { $ options = $ this -> getOptions ( ) ; $ currClass = $ element -> getAttribute ( 'class' ) ; $ class = $ currClass . ( null !== $ currClass ? ' ' : '' ) . $ options [ 'class' ] ; $ element -> setAttributes ( array ( 'class' => $ class , 'data-color' => $ options [ 'color' ] , 'data-color-format' => $ options [ 'format' ] , ) ) ; return $ element ; }
Prepare the element by applying all changes to it required for the colorpicker.

@param Zend\Form\Element\Element $element

@return Zend\Form\View\Helper\FormInput
Prepare the element by applying all changes to it required for the colorpicker .