Contao\Combiner::handleCss PHP Method

handleCss() protected method

Handle CSS files
protected handleCss ( string $content, array $arrFile ) : string
$content string The file content
$arrFile array The file array
return string The modified file content
    protected function handleCss($content, $arrFile)
    {
        $content = $this->fixPaths($content, $arrFile);
        // Add the media type if there is no @media command in the code
        if ($arrFile['media'] != '' && $arrFile['media'] != 'all' && strpos($content, '@media') === false) {
            $content = '@media ' . $arrFile['media'] . "{\n" . $content . "\n}";
        }
        return $content;
    }