You are here

public function WebhookForm::__construct in Fastly 8.3

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

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

Overrides ConfigFormBase::__construct

File

src/Form/WebhookForm.php, line 36

Class

WebhookForm
Class WebhookForm.

Namespace

Drupal\fastly\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, Webhook $webhook, RequestStack $request_stack) {
  parent::__construct($config_factory);
  $this->webhook = $webhook;
  $this->baseUrl = $request_stack
    ->getCurrentRequest()
    ->getHost();
}