/**
  * Log server-side event on successful page edit.
  * @see https://www.mediawiki.org/wiki/Manual:Hooks/PageContentSaveComplete
  * @see https://meta.wikimedia.org/wiki/Schema:PageContentSaveComplete
  */
 public static function onPageContentSaveComplete($article, $user, $content, $summary, $isMinor, $isWatch, $section, $flags, $revision, $status, $baseRevId)
 {
     if ($revision) {
         $event = array('revisionId' => $revision->getId());
         if (isset($_SERVER['HTTP_USER_AGENT'])) {
             $event['userAgent'] = $_SERVER['HTTP_USER_AGENT'];
         }
         efLogServerSideEvent('PageContentSaveComplete', 5303086, $event);
     }
     return true;
 }
 /**
  * This is the only function that interacts with EventLogging
  * @param $schema string
  * @param $data array
  */
 public static function actuallyLogTheEvent($schema, $data)
 {
     global $wgEchoConfig;
     efLogServerSideEvent($schema, $wgEchoConfig['eventlogging'][$schema]['revision'], $data);
 }