You are here

public function ClientDeleteConfirmForm::dispatchEvent in Acquia Content Hub 8.2

Dispatches AcquiaContentHubUnregisterEvent.

Parameters

string $webhook_uuid: Webhook uuid.

Overrides ContentHubDeleteClientConfirmForm::dispatchEvent

File

modules/acquia_contenthub_publisher/src/Form/Client/ClientDeleteConfirmForm.php, line 63

Class

ClientDeleteConfirmForm
Class ClientDeleteConfirmForm.

Namespace

Drupal\acquia_contenthub_publisher\Form\Client

Code

public function dispatchEvent(string $webhook_uuid) {
  $this->event = new AcquiaContentHubUnregisterEvent($webhook_uuid, $this->uuid);
  $this->eventDispatcher
    ->dispatch(AcquiaContentHubEvents::ACH_UNREGISTER, $this->event);
}