You are here

public function ContentHubDeleteClientConfirmForm::dispatchEvent in Acquia Content Hub 8.2

Dispatches AcquiaContentHubUnregisterEvent.

Parameters

string $webhook_uuid: Webhook uuid.

1 call to ContentHubDeleteClientConfirmForm::dispatchEvent()
ContentHubDeleteClientConfirmForm::buildForm in src/Form/ContentHubDeleteClientConfirmForm.php
Form constructor.
1 method overrides ContentHubDeleteClientConfirmForm::dispatchEvent()
ClientDeleteConfirmForm::dispatchEvent in modules/acquia_contenthub_publisher/src/Form/Client/ClientDeleteConfirmForm.php
Dispatches AcquiaContentHubUnregisterEvent.

File

src/Form/ContentHubDeleteClientConfirmForm.php, line 187

Class

ContentHubDeleteClientConfirmForm
Class ContentHubDeleteClientConfirmForm.

Namespace

Drupal\acquia_contenthub\Form

Code

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