public function VarnishPurgerFormBase::__construct in Varnish purger 8
Same name and namespace in other branches
- 8.2 src/Form/VarnishPurgerFormBase.php \Drupal\varnish_purger\Form\VarnishPurgerFormBase::__construct()
Constructs a \Drupal\varnish_purger\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/ VarnishPurgerFormBase.php, line 58
Class
- VarnishPurgerFormBase
- Abstract form base for Varnish based configurable purgers.
Namespace
Drupal\varnish_purger\FormCode
public function __construct(ConfigFactoryInterface $config_factory, InvalidationsServiceInterface $purge_invalidation_factory) {
$this
->setConfigFactory($config_factory);
$this->purgeInvalidationFactory = $purge_invalidation_factory;
}