You are here

public function OperationsForm::__construct in Advanced CSS/JS Aggregation 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/OperationsForm.php \Drupal\advagg\Form\OperationsForm::__construct()

Constructs the OperationsForm object.

Parameters

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

\Drupal\Core\PrivateKey $private_key: The private key service.

\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\State\StateInterface $advagg_files: A state information store for the AdvAgg scanned files.

\Drupal\Core\State\StateInterface $advagg_aggregates: A state information store for the AdvAgg generated aggregates.

Overrides ConfigFormBase::__construct

File

src/Form/OperationsForm.php, line 81

Class

OperationsForm
Configure advagg settings for this site.

Namespace

Drupal\advagg\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, PrivateKey $private_key, DateFormatterInterface $date_formatter, AssetCollectionOptimizerInterface $css_collection_optimizer, AssetCollectionOptimizerInterface $js_collection_optimizer, StateInterface $advagg_files, StateInterface $advagg_aggregates) {
  parent::__construct($config_factory);
  $this->privateKey = $private_key;
  $this->dateFormatter = $date_formatter;
  $this->cssCollectionOptimizer = $css_collection_optimizer;
  $this->jsCollectionOptimizer = $js_collection_optimizer;
  $this->advaggFiles = $advagg_files;
  $this->advaggAggregates = $advagg_aggregates;
}