You are here

final public function HttpPurgerFormBase::__construct in Generic HTTP Purger 8

Constructs a \Drupal\purge_purger_http\Form\ConfigurationForm object.

Parameters

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

\Drupal\purge\Plugin\Purge\Invalidation\InvalidationsServiceInterface $purge_invalidation_factory: The invalidation objects factory service.

Overrides ConfigFormBase::__construct

File

src/Form/HttpPurgerFormBase.php, line 95

Class

HttpPurgerFormBase
Abstract form base for HTTP based configurable purgers.

Namespace

Drupal\purge_purger_http\Form

Code

public final function __construct(ConfigFactoryInterface $config_factory, InvalidationsServiceInterface $purge_invalidation_factory) {
  $this
    ->setConfigFactory($config_factory);
  $this->purgeInvalidationFactory = $purge_invalidation_factory;
}