APIv4 - Remove unnecessary class override (handled by generic)
authorColeman Watts <coleman@civicrm.org>
Wed, 28 Apr 2021 00:49:38 +0000 (20:49 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 28 Apr 2021 00:49:38 +0000 (20:49 -0400)
Civi/Api4/Action/CustomValue/Replace.php [deleted file]
Civi/Api4/CustomValue.php

diff --git a/Civi/Api4/Action/CustomValue/Replace.php b/Civi/Api4/Action/CustomValue/Replace.php
deleted file mode 100644 (file)
index 618ae4e..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-/*
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC. All rights reserved.                        |
- |                                                                    |
- | This work is published under the GNU AGPLv3 license with some      |
- | permitted exceptions and without any warranty. For full license    |
- | and copyright information, see https://civicrm.org/licensing       |
- +--------------------------------------------------------------------+
- */
-
-/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
- */
-
-
-namespace Civi\Api4\Action\CustomValue;
-
-/**
- * Given a set of records, will appropriately update the database.
- */
-class Replace extends \Civi\Api4\Generic\BasicReplaceAction {
-  use \Civi\Api4\Generic\Traits\CustomValueActionTrait;
-
-}
index ef7fdc168792c8bd582712b51180a329fccc0ed5..b5ebf0ebf27fb7b0f37be47e9ee478670b03f3ed 100644 (file)
@@ -103,11 +103,11 @@ class CustomValue {
   /**
    * @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);
   }