src/View/Helper/FormHelper.php
protected function _processTemplateVars(array $options)
    {
        $templateVars = isset($options['options']['templateVars']) ? $options['options']['templateVars'] : [];

        if (empty($templateVars)) {
            return $templateVars;
        }

        if (isset($templateVars['formRowLabel']) && $options['options']['id'] !== false) {
            $templateVars['formRowFor'] = ' for="' . $options['options']['id'] . '"';
        }

        $wrapInSmall = [
            'formRowLabelInfo',
            'formRowInfo',
            'info'
        ];

        foreach ($wrapInSmall as $attr) {
            if (isset($templateVars[$attr])) {
                $templateVars[$attr] = '<small>' . $templateVars[$attr] . '</small>';
            }
        }

        return $templateVars;
    }
protected function _processTemplateVars(array $options)
    {
        $templateVars = isset($options['options']['templateVars']) ? $options['options']['templateVars'] : [];

        if (empty($templateVars)) {
            return $templateVars;
        }

        if (isset($templateVars['formRowLabel']) && $options['options']['id'] !== false) {
            $templateVars['formRowFor'] = ' for="' . $options['options']['id'] . '"';
        }

        $wrapInSmall = [
            'formRowLabelInfo',
            'formRowInfo',
            'info'
        ];

        foreach ($wrapInSmall as $attr) {
            if (isset($templateVars[$attr])) {
                $templateVars[$attr] = '<small>' . $templateVars[$attr] . '</small>';
            }
        }

        return $templateVars;
    }
protected function _processTemplateVars ( array $ options ) { $ templateVars = isset ( $ options [ 'options' ] [ 'templateVars' ] ) ? $ options [ 'options' ] [ 'templateVars' ] : [ ] ; if ( empty ( $ templateVars ) ) { return $ templateVars ; } if ( isset ( $ templateVars [ 'formRowLabel' ] ) && $ options [ 'options' ] [ 'id' ] !== false ) { $ templateVars [ 'formRowFor' ] = ' for="' . $ options [ 'options' ] [ 'id' ] . '"' ; } $ wrapInSmall = [ 'formRowLabelInfo' , 'formRowInfo' , 'info' ] ; foreach ( $ wrapInSmall as $ attr ) { if ( isset ( $ templateVars [ $ attr ] ) ) { $ templateVars [ $ attr ] = '<small>' . $ templateVars [ $ attr ] . '</small>' ; } } return $ templateVars ; }
Process templateVars to wrap info elements in a small tag and
apply the "for" attribute to form row labels.

@param array $options The input options
@return array
Process templateVars to wrap info elements in a small tag and apply the for attribute to form row labels .