Merge pull request #22380 from braders/core-483-show-customised-preferences-on-validation
[civicrm-core.git] / CRM / Core / CodeGen / ITask.php
index 2f436c9f4e28d18d096bd57860410c0776a6a387..c5338c29c537856266069cddaf90ca535d461a43 100644 (file)
@@ -4,15 +4,16 @@
  * Implemented by CG tasks
  */
 interface CRM_Core_CodeGen_ITask {
-  /**
-   * Make configuration object available to the task.
-   *
-   * @param $config is currently the CRM_Core_CodeGen_Main object.
-   */
-  public function setConfig($config);
 
   /**
    * Perform the task.
    */
   public function run();
+
+  /**
+   * @return bool
+   *   TRUE if an update is needed.
+   */
+  public function needsUpdate();
+
 }