From: colemanw Date: Sat, 2 Mar 2024 19:30:22 +0000 (-0500) Subject: Regression - Fix missing getLinks action in SKEntity X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=de2d2f7b9073322b9f36f9c4e29a83cc4bb241bf;p=civicrm-core.git Regression - Fix missing getLinks action in SKEntity --- 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