AiClient::getEventDispatcher(): WordPressAiClientDependenciesPsrEventDispatcherEventDispatcherInterface|null

In this article

Gets the event dispatcher for prompt lifecycle events.

Return

WordPressAiClientDependenciesPsrEventDispatcherEventDispatcherInterface|null The event dispatcher, or null if not set.

Source

public static function getEventDispatcher(): ?EventDispatcherInterface
{
    return self::$eventDispatcher;
}

Changelog

VersionDescription
0.4.0Introduced.

User Contributed Notes

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