From 3801b3657d4c7aa4337f6ef8ec39548cf3b6716d Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 6 Nov 2024 15:18:01 +1300 Subject: [PATCH] API Deprecate API which will be removed --- src/Controllers/ElementalAreaController.php | 2 ++ src/Models/BaseElement.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Controllers/ElementalAreaController.php b/src/Controllers/ElementalAreaController.php index 399a299e..915efd97 100644 --- a/src/Controllers/ElementalAreaController.php +++ b/src/Controllers/ElementalAreaController.php @@ -162,9 +162,11 @@ public function save(array $data, Form $form): HTTPResponse * @param array $data * @param int $elementID * @return array + * @deprecated 5.4.0 Will be removed without equivalent functionality to replace it. */ public static function removeNamespacesFromFields(array $data, $elementID) { + Deprecation::noticeWithNoReplacment('5.4.0'); $output = []; $template = sprintf(EditFormFactory::FIELD_NAMESPACE_TEMPLATE, $elementID, ''); foreach ($data as $key => $value) { diff --git a/src/Models/BaseElement.php b/src/Models/BaseElement.php index f26fa9f7..020e2d16 100644 --- a/src/Models/BaseElement.php +++ b/src/Models/BaseElement.php @@ -653,9 +653,11 @@ public function getRenderTemplates($suffix = '') * Given form data (wit * * @param $data + * @deprecated 5.4.0 Will be removed without equivalent functionality to replace it. */ public function updateFromFormData($data) { + Deprecation::noticeWithNoReplacment('5.4.0'); $cmsFields = $this->getCMSFields(); foreach ($data as $field => $datum) {