projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12ba587
)
Regression - Fix missing getLinks action in SKEntity
author
colemanw
<coleman@civicrm.org>
Sat, 2 Mar 2024 19:30:22 +0000
(14:30 -0500)
committer
colemanw
<coleman@civicrm.org>
Sat, 2 Mar 2024 19:30:22 +0000
(14:30 -0500)
ext/search_kit/Civi/Api4/SKEntity.php
patch
|
blob
|
blame
|
history
diff --git
a/ext/search_kit/Civi/Api4/SKEntity.php
b/ext/search_kit/Civi/Api4/SKEntity.php
index 1a80f55dd247799b3374409329ae6052ae048dc8..dc5820ef2f84f4e418859892caa9cd5fa6098918 100644
(file)
--- 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