/**
  * @param \Civi\API\Event\ResolveEvent $event
  */
 public function onApiResolve(\Civi\API\Event\ResolveEvent $event)
 {
     $apiRequest = $event->getApiRequest();
     if ($this->matchesRequest($apiRequest)) {
         $event->setApiRequest($apiRequest);
         $event->setApiProvider($this);
         $event->stopPropagation();
     }
 }
 /**
  * @param \Civi\API\Event\ResolveEvent $event
  *   API resolution event.
  */
 public function onApiResolve(\Civi\API\Event\ResolveEvent $event)
 {
     $apiRequest = $event->getApiRequest();
     if ($apiRequest instanceof \Civi\API\V4\Action) {
         $event->setApiRequest($apiRequest);
         $event->setApiProvider($this);
         $event->stopPropagation();
     }
 }
 /**
  * @param \Civi\API\Event\ResolveEvent $event
  *   API resolution event.
  */
 public function onApiResolve(\Civi\API\Event\ResolveEvent $event)
 {
     $apiRequest = $event->getApiRequest();
     $resolved = $this->resolve($apiRequest);
     if ($resolved['function']) {
         $apiRequest += $resolved;
         $event->setApiRequest($apiRequest);
         $event->setApiProvider($this);
         $event->stopPropagation();
     }
 }
 /**
  * @param \Civi\API\Event\ResolveEvent $event
  */
 public function onApiResolve(\Civi\API\Event\ResolveEvent $event)
 {
     $apiRequest = $event->getApiRequest();
     $actions = isset($this->actions[$apiRequest['entity']]) ? $this->actions[$apiRequest['entity']] : $this->actions['*'];
     if (in_array($apiRequest['action'], $actions)) {
         $apiRequest['is_metadata'] = TRUE;
         $event->setApiRequest($apiRequest);
         $event->setApiProvider($this);
         $event->stopPropagation();
         // TODO decide if we really want to override others
     }
 }