You are here

public function CssOptimizer::getConfiguration in Advanced CSS/JS Aggregation 8.2

Generate the css minification configuration.

Return value

array Array($options, $description, $minifiers, $functions).

1 call to CssOptimizer::getConfiguration()
CssOptimizer::processCssOther in advagg_css_minify/src/Asset/CssOptimizer.php
Processes the contents of a stylesheet for minification.

File

advagg_css_minify/src/Asset/CssOptimizer.php, line 79

Class

CssOptimizer
Optimizes a CSS asset.

Namespace

Drupal\advagg_css_minify\Asset

Code

public function getConfiguration() {
  $description = '';
  $options = [
    0 => t('Disabled'),
    1 => t('Core'),
    2 => t('YUI'),
  ];
  $minifiers = [
    NULL,
    NULL,
    NULL,
  ];
  $functions = [
    NULL,
    NULL,
    NULL,
  ];

  // Allow for other modules to alter this list.
  $options_desc = [
    $options,
    $description,
  ];
  $this->moduleHandler
    ->alter('advagg_css_minify_configuration', $options_desc, $minifiers, $functions);
  list($options, $description) = $options_desc;
  return [
    $options,
    $description,
    $minifiers,
    $functions,
  ];
}