Regression - Fix missing getLinks action in SKEntity
authorcolemanw <coleman@civicrm.org>
Sat, 2 Mar 2024 19:30:22 +0000 (14:30 -0500)
committercolemanw <coleman@civicrm.org>
Sat, 2 Mar 2024 19:30:22 +0000 (14:30 -0500)
ext/search_kit/Civi/Api4/SKEntity.php

index 1a80f55dd247799b3374409329ae6052ae048dc8..dc5820ef2f84f4e418859892caa9cd5fa6098918 100644 (file)
@@ -62,6 +62,16 @@ class SKEntity {
       ->setCheckPermissions($checkPermissions);
   }
 
+  /**
+   * @param string $displayEntity
+   * @param bool $checkPermissions
+   * @return \Civi\Api4\Action\GetLinks
+   */
+  public static function getLinks(string $displayEntity, bool $checkPermissions = TRUE): Action\GetLinks {
+    return (new Action\GetLinks('SK_' . $displayEntity, __FUNCTION__))
+      ->setCheckPermissions($checkPermissions);
+  }
+
   /**
    * @param string $displayEntity
    * @return \Civi\Api4\Generic\CheckAccessAction