public function renameTranslationPackage(array &$preset)
    {
        foreach ($preset as $key => $value) {
            if (is_array($value)) {
                if (isset($value['renderingOptions']['translationPackage'])) {
                    $value['renderingOptions']['validationErrorTranslationPackage'] = $value['renderingOptions']['translationPackage'];
                    unset($value['renderingOptions']['translationPackage']);
                }
                $preset[$key] = $this->renameTranslationPackage($value);
            }
        }

        return $preset;
    }
public function renameTranslationPackage(array &$preset)
    {
        foreach ($preset as $key => $value) {
            if (is_array($value)) {
                if (isset($value['renderingOptions']['translationPackage'])) {
                    $value['renderingOptions']['validationErrorTranslationPackage'] = $value['renderingOptions']['translationPackage'];
                    unset($value['renderingOptions']['translationPackage']);
                }
                $preset[$key] = $this->renameTranslationPackage($value);
            }
        }

        return $preset;
    }
public function renameTranslationPackage ( array & $ preset ) { foreach ( $ preset as $ key => $ value ) { if ( is_array ( $ value ) ) { if ( isset ( $ value [ 'renderingOptions' ] [ 'translationPackage' ] ) ) { $ value [ 'renderingOptions' ] [ 'validationErrorTranslationPackage' ] = $ value [ 'renderingOptions' ] [ 'translationPackage' ] ; unset ( $ value [ 'renderingOptions' ] [ 'translationPackage' ] ) ; } $ preset [ $ key ] = $ this -> renameTranslationPackage ( $ value ) ; } } return $ preset ; }
Recurse into the given preset and rename translationPackage to validationErrorTranslationPackage

@param array $preset
@return array
Recurse into the given preset and rename translationPackage to validationErrorTranslationPackage