You are here

public function AdminCssEditor::__construct in Admin CSS 8.2

Constructs a PerformanceForm object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\File\FileSystemInterface $file_system: The file system.

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: The cache tags invalidator service.

\Drupal\Core\Asset\AssetCollectionOptimizerInterface $css_collection_optimizer: The CSS asset collection optimizer service.

\Drupal\Core\Asset\AssetCollectionOptimizerInterface $js_collection_optimizer: The JavaScript asset collection optimizer service.

Overrides ConfigFormBase::__construct

File

src/Form/AdminCssEditor.php, line 61

Class

AdminCssEditor
Admin CSS editor form.

Namespace

Drupal\admincss\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, FileSystemInterface $file_system, CacheTagsInvalidatorInterface $cache_tags_invalidator, AssetCollectionOptimizerInterface $css_collection_optimizer, AssetCollectionOptimizerInterface $js_collection_optimizer) {
  parent::__construct($config_factory);
  $this->fileSystem = $file_system;
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
  $this->cssCollectionOptimizer = $css_collection_optimizer;
  $this->jsCollectionOptimizer = $js_collection_optimizer;
}