Remove use of ignoreException() from SMTP settings form.
[civicrm-core.git] / Civi / Api4 / System.php
index da4ea2bb75549fbc7ea8be522abed96faf89935f..0afefe11a1a51233c257ba54fac40cf72d6fc703 100644 (file)
@@ -43,6 +43,16 @@ class System extends Generic\AbstractEntity {
       ->setCheckPermissions($checkPermissions);
   }
 
+  /**
+   * @param bool $checkPermissions
+   *
+   * @return Action\System\RotateKey
+   */
+  public static function rotateKey($checkPermissions = TRUE) {
+    return (new Action\System\RotateKey(__CLASS__, __FUNCTION__))
+      ->setCheckPermissions($checkPermissions);
+  }
+
   /**
    * @param bool $checkPermissions
    * @return Generic\BasicGetFieldsAction