You are here

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

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

Constructs a SettingsForm object.

Parameters

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

\Drupal\Core\Theme\Registry $theme_registry: The theme registry service.

\Drupal\Core\State\StateInterface $advagg_files: The AdvAgg file status state information storage service.

\Drupal\Core\State\StateInterface $advagg_aggregates: The AdvAgg aggregate state information storage service.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The Date formatter service.

\Drupal\Core\StringTranslation\Translator\TranslatorInterface $string_translation: The string translation service.

Overrides ConfigFormBase::__construct

File

src/Form/InfoForm.php, line 82

Class

InfoForm
View AdvAgg information for this site.

Namespace

Drupal\advagg\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, Registry $theme_registry, StateInterface $advagg_files, StateInterface $advagg_aggregates, RequestStack $request_stack, DateFormatterInterface $date_formatter, TranslatorInterface $string_translation) {
  parent::__construct($config_factory);
  $this->themeRegistry = $theme_registry;
  $this->advaggFiles = $advagg_files;
  $this->advaggAggregates = $advagg_aggregates;
  $this->requestStack = $request_stack;
  $this->dateFormatter = $date_formatter;
  $this->translation = $string_translation;
}