/**
* @param string $customGroup
* @param bool $checkPermissions
- * @return Action\CustomValue\Replace
+ * @return Generic\BasicReplaceAction
* @throws \API_Exception
*/
public static function replace($customGroup, $checkPermissions = TRUE) {
- return (new Action\CustomValue\Replace($customGroup, __FUNCTION__))
+ return (new Generic\BasicReplaceAction("Custom_$customGroup", __FUNCTION__, ['id', 'entity_id']))
->setCheckPermissions($checkPermissions);
}
/**
* @param string $customGroup
* @param bool $checkPermissions
- * @return Action\CustomValue\GetActions
+ * @return Action\GetActions
* @throws \API_Exception
*/
public static function getActions($customGroup = NULL, $checkPermissions = TRUE) {
- return (new Action\CustomValue\GetActions($customGroup, __FUNCTION__))
+ return (new Action\GetActions("Custom_$customGroup", __FUNCTION__))
->setCheckPermissions($checkPermissions);
}
return [
'class' => __CLASS__,
'type' => ['CustomValue'],
- 'searchable' => TRUE,
+ 'searchable' => 'secondary',
'see' => [
'https://docs.civicrm.org/user/en/latest/organising-your-data/creating-custom-fields/#multiple-record-fieldsets',
'\Civi\Api4\CustomGroup',