Fix Parser classes to use ClassScanner
[civicrm-core.git] / CRM / Event / Import / Parser / Participant.php
index 86558b7dd5db47a43cf3f03e60a8520cf019cae4..8afe963e82de27ee09de6a99411de77b08bb86fd 100644 (file)
@@ -71,6 +71,25 @@ class CRM_Event_Import_Parser_Participant extends CRM_Import_Parser {
     $this->_mapperKeys = &$mapperKeys;
   }
 
+  /**
+   * Get information about the provided job.
+   *
+   *  - name
+   *  - id (generally the same as name)
+   *  - label
+   *
+   * @return array
+   */
+  public static function getUserJobInfo(): array {
+    return [
+      'participant_import' => [
+        'id' => 'participant_import',
+        'name' => 'participant_import',
+        'label' => ts('Participant Import'),
+      ],
+    ];
+  }
+
   /**
    * The initializer code, called before the processing.
    */