You are here

public function PerformanceForm::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/src/Form/PerformanceForm.php \Drupal\system\Form\PerformanceForm::__construct()
  2. 10 core/modules/system/src/Form/PerformanceForm.php \Drupal\system\Form\PerformanceForm::__construct()

Constructs a PerformanceForm object.

Parameters

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

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter 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.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

Overrides ConfigFormBase::__construct

File

core/modules/system/src/Form/PerformanceForm.php, line 63

Class

PerformanceForm
Configure performance settings for this site.

Namespace

Drupal\system\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, DateFormatterInterface $date_formatter, AssetCollectionOptimizerInterface $css_collection_optimizer, AssetCollectionOptimizerInterface $js_collection_optimizer, ModuleHandlerInterface $module_handler) {
  parent::__construct($config_factory);
  $this->dateFormatter = $date_formatter;
  $this->cssCollectionOptimizer = $css_collection_optimizer;
  $this->jsCollectionOptimizer = $js_collection_optimizer;
  $this->moduleHandler = $module_handler;
}