AssetCompress\View\Helper\AssetCompressHelper::inlineCss PHP Method

inlineCss() public method

To create build files without configuration use addCss() Options: - All options supported by HtmlHelper::css() are supported.
public inlineCss ( string $file ) : string
$file string A build target to include.
return string style tag
    public function inlineCss($file)
    {
        $collection = $this->collection();
        if (!$collection->contains($file)) {
            throw new RuntimeException('Cannot create a stylesheet for a build that does not exist.');
        }
        $compiler = $this->factory()->compiler();
        $results = $compiler->generate($collection->get($file));
        return $this->Html->tag('style', $results, ['type' => 'text/css']);
    }