Classes/Hooks/T3libPageRendererRenderPreProcessHook.php
public function execute(&$params, &$pagerenderer)
    {
        if (!is_array($params['cssFiles'])) {
            return;
        }
        $cssFilesArray = [];
        foreach ($params['cssFiles'] as $cssFile => $cssFileSettings) {
            $compiledFile = \KayStrobach\Dyncss\Service\DyncssService::getCompiledFile($cssFile);
            if ($compiledFile !== $cssFile) {
                $cssFileSettings['file'] = $compiledFile; //needed for TYPO3 4.6+ ;)
                $cssFileSettings['compress'] = 0;
                $cssFilesArray[$compiledFile] = $cssFileSettings;
            } else {
                $cssFilesArray[$cssFile] = $cssFileSettings;
            }
        }
        $params['cssFiles'] = $cssFilesArray;
    }
public function execute(&$params, &$pagerenderer)
    {
        if (!is_array($params['cssFiles'])) {
            return;
        }
        $cssFilesArray = [];
        foreach ($params['cssFiles'] as $cssFile => $cssFileSettings) {
            $compiledFile = \KayStrobach\Dyncss\Service\DyncssService::getCompiledFile($cssFile);
            if ($compiledFile !== $cssFile) {
                $cssFileSettings['file'] = $compiledFile; //needed for TYPO3 4.6+ ;)
                $cssFileSettings['compress'] = 0;
                $cssFilesArray[$compiledFile] = $cssFileSettings;
            } else {
                $cssFilesArray[$cssFile] = $cssFileSettings;
            }
        }
        $params['cssFiles'] = $cssFilesArray;
    }
public function execute ( & $ params , & $ pagerenderer ) { if ( ! is_array ( $ params [ 'cssFiles' ] ) ) { return ; } $ cssFilesArray = [ ] ; foreach ( $ params [ 'cssFiles' ] as $ cssFile => $ cssFileSettings ) { $ compiledFile = \ KayStrobach \ Dyncss \ Service \ DyncssService :: getCompiledFile ( $ cssFile ) ; if ( $ compiledFile !== $ cssFile ) { $ cssFileSettings [ 'file' ] = $ compiledFile ; //needed for TYPO3 4.6+ ;) $ cssFileSettings [ 'compress' ] = 0 ; $ cssFilesArray [ $ compiledFile ] = $ cssFileSettings ; } else { $ cssFilesArray [ $ cssFile ] = $ cssFileSettings ; } } $ params [ 'cssFiles' ] = $ cssFilesArray ; }
This function iterates over the arrays and rebuild them to keep the order, as keynames may change.

@param array                             $params
@param \TYPO3\CMS\Core\Page\PageRenderer $pagerenderer
This function iterates over the arrays and rebuild them to keep the order as keynames may change .