From de2d2f7b9073322b9f36f9c4e29a83cc4bb241bf Mon Sep 17 00:00:00 2001 From: colemanw Date: Sat, 2 Mar 2024 14:30:22 -0500 Subject: [PATCH] Regression - Fix missing getLinks action in SKEntity --- ext/search_kit/Civi/Api4/SKEntity.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ext/search_kit/Civi/Api4/SKEntity.php b/ext/search_kit/Civi/Api4/SKEntity.php index 1a80f55dd2..dc5820ef2f 100644 --- a/ext/search_kit/Civi/Api4/SKEntity.php +++ b/ext/search_kit/Civi/Api4/SKEntity.php @@ -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 -- 2.25.1