X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FAPI%2FSubscriber%2FChainSubscriber.php;h=e76220ca0dc0785a4723b000073865fbb0760e93;hb=b0897349dd5ecfe595ac7c13030caac2b95e09c1;hp=8834495633819bb8504a4be195e92b7b7440faf9;hpb=deae79e458d06ff158c4aef3f3b4c601aba7fe31;p=civicrm-core.git diff --git a/Civi/API/Subscriber/ChainSubscriber.php b/Civi/API/Subscriber/ChainSubscriber.php index 8834495633..e76220ca0d 100644 --- a/Civi/API/Subscriber/ChainSubscriber.php +++ b/Civi/API/Subscriber/ChainSubscriber.php @@ -18,7 +18,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; * The ChainSubscriber looks for API parameters which specify a nested or * chained API call. For example: * - * @code + * ``` * $result = civicrm_api('Contact', 'create', array( * 'version' => 3, * 'first_name' => 'Amy', @@ -27,7 +27,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; * 'location_type_id' => 123, * ), * )); - * @endcode + * ``` * * The ChainSubscriber looks for any parameters of the form "api.Email.create"; * if found, it issues the nested API call (and passes some extra context -- @@ -40,7 +40,7 @@ class ChainSubscriber implements EventSubscriberInterface { */ public static function getSubscribedEvents() { return [ - Events::RESPOND => ['onApiRespond', Events::W_EARLY], + 'civi.api.respond' => ['onApiRespond', Events::W_EARLY], ]; }