Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Deprecate API which will be removed #1270

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Controllers/ElementalAreaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
emteknetnz marked this conversation as resolved.
Show resolved Hide resolved
$output = [];
$template = sprintf(EditFormFactory::FIELD_NAMESPACE_TEMPLATE, $elementID, '');
foreach ($data as $key => $value) {
Expand Down
2 changes: 2 additions & 0 deletions src/Models/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down