public function SimpleForm::__construct in Admin CSS 8
Constructs a PerformanceForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\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/ SimpleForm.php, line 41
Class
- SimpleForm
- SimpleForm with some custom functions and settings.
Namespace
Drupal\admin_css\FormCode
public function __construct(ConfigFactoryInterface $config_factory, AssetCollectionOptimizerInterface $css_collection_optimizer, AssetCollectionOptimizerInterface $js_collection_optimizer) {
parent::__construct($config_factory);
$this->cssCollectionOptimizer = $css_collection_optimizer;
$this->jsCollectionOptimizer = $js_collection_optimizer;
}