You are here

public function WebhookDeleteConfirmForm::__construct in Acquia Content Hub 8.2

WebhookDeleteConfirmForm constructor.

Parameters

\Drupal\acquia_contenthub\Client\ClientFactory $client_factory: ACH client factory.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: Symfony event dispatcher.

File

modules/acquia_contenthub_publisher/src/Form/Webhook/WebhookDeleteConfirmForm.php, line 62

Class

WebhookDeleteConfirmForm
Confirmation form for webhook deletion.

Namespace

Drupal\acquia_contenthub_publisher\Form\Webhook

Code

public function __construct(ClientFactory $client_factory, EventDispatcherInterface $dispatcher) {
  $this->client = $client_factory
    ->getClient();
  $this->dispatcher = $dispatcher;
}