You are here

public function SettingsForm::__construct in Advanced Page Expiration 8

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\Component\Plugin\Factory\FactoryInterface $plugin_factory: Factory for condition plugin manager.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 45

Class

SettingsForm

Namespace

Drupal\ape\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, DateFormatterInterface $date_formatter, FactoryInterface $plugin_factory) {
  parent::__construct($config_factory);
  $this->dateFormatter = $date_formatter;
  $this->excluded = $plugin_factory
    ->createInstance('request_path');
  $this->alternatives = $plugin_factory
    ->createInstance('request_path');
}