public function StaleContentOptionsForm::__construct in Fastly 8.3
Constructs a StaleContentOptionsForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\fastly\Services\Webhook $webhook: The Fastly webhook service.
\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack object.
Overrides ConfigFormBase::__construct
File
- src/
Form/ StaleContentOptionsForm.php, line 43
Class
- StaleContentOptionsForm
- Class StaleContentOptionsForm.
Namespace
Drupal\fastly\FormCode
public function __construct(ConfigFactoryInterface $config_factory, Webhook $webhook, RequestStack $requestStack) {
parent::__construct($config_factory);
$this->webhook = $webhook;
$this->baseUrl = $requestStack
->getCurrentRequest()
->getHost();
}