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']);
    }
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']);
    }
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' ] ) ; }
Create a CSS file. Will generate inline style tags
in production, or reference the dynamic build file in development

To create build files without configuration use addCss()

Options:

- All options supported by HtmlHelper::css() are supported.

@param string $file A build target to include.
@throws RuntimeException
@return string style tag
Create a CSS file . Will generate inline style tags in production or reference the dynamic build file in development