src/Form/Base.php
protected function formatFormElement(array $element)
    {
        $sm = $this->getServiceLocator();
        $result = array();
        if (array_key_exists('lazy-set', $element)) {
            $result = $sm->get($this->moduleService)->lazySet($element['lazy-set']);
        }
        $result['name'] = $element['name'];
        $result['type'] = $element['type'];
        if (array_key_exists('label', $element)) {
            $result['options']['label'] = $element['label'];
        }
        return $result;
    }
protected function formatFormElement(array $element)
    {
        $sm = $this->getServiceLocator();
        $result = array();
        if (array_key_exists('lazy-set', $element)) {
            $result = $sm->get($this->moduleService)->lazySet($element['lazy-set']);
        }
        $result['name'] = $element['name'];
        $result['type'] = $element['type'];
        if (array_key_exists('label', $element)) {
            $result['options']['label'] = $element['label'];
        }
        return $result;
    }
protected function formatFormElement ( array $ element ) { $ sm = $ this -> getServiceLocator ( ) ; $ result = array ( ) ; if ( array_key_exists ( 'lazy-set' , $ element ) ) { $ result = $ sm -> get ( $ this -> moduleService ) -> lazySet ( $ element [ 'lazy-set' ] ) ; } $ result [ 'name' ] = $ element [ 'name' ] ; $ result [ 'type' ] = $ element [ 'type' ] ; if ( array_key_exists ( 'label' , $ element ) ) { $ result [ 'options' ] [ 'label' ] = $ element [ 'label' ] ; } return $ result ; }
Format form element by replacing keywords with values recognized by zend-form

@param array $element
@return array $result
Format form element by replacing keywords with values recognized by zend - form