You are here

private function HtmlResponseAttachmentsProcessor::getCssAssetCollection in Cookie Content Blocker 8

Collects the CSS assets.

Return value

array The CSS asset collection.

1 call to HtmlResponseAttachmentsProcessor::getCssAssetCollection()
HtmlResponseAttachmentsProcessor::processStyles in src/Render/HtmlResponseAttachmentsProcessor.php
Processes css assets and creates output for the 'styles' variable.

File

src/Render/HtmlResponseAttachmentsProcessor.php, line 196

Class

HtmlResponseAttachmentsProcessor
Processes attachments of HTML responses.

Namespace

Drupal\cookie_content_blocker\Render

Code

private function getCssAssetCollection() : array {
  $optimize_css = !defined('MAINTENANCE_MODE') && $this->config
    ->get('css.preprocess');
  return $this
    ->getMergedAndSortedAssets(...$this
    ->resolveAssets([
    $this->assetResolver,
    'getCssAssets',
  ], $optimize_css));
}