Last active
December 5, 2018 12:29
-
-
Save JeromeChevalier/b29b01b82f0576d9df3e906ea3e11121 to your computer and use it in GitHub Desktop.
Send notification event #sraiportal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$myevent = new AINotificationEvent(['recipient' => 1,'priority' => $AINotificationEvent::LOW_PRIORITY,'message' => 'My message to notify','module' => AINotificationEvent::ORIGIN_AI_ENGINE]); | |
$event_dispatcher = \Drupal::service('event_dispatcher'); | |
$event_dispatcher->dispatch(AINotificationEvent::EVENT_ID, $myevent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment