PromptBuilder::dispatchEvent( object $event ): void

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only by core. It is listed here for completeness.

Dispatches an event if an event dispatcher is registered.

Parameters

$eventobjectrequired
The event to dispatch.

Return

void

Source

private function dispatchEvent(object $event): void
{
    if ($this->eventDispatcher !== null) {
        $this->eventDispatcher->dispatch($event);
    }
}

Changelog

VersionDescription
0.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.