Skip to content
Snippets Groups Projects
Commit b68ac6a5 authored by catch's avatar catch
Browse files

Issue #3303557 by benjifisher, Binoli Lalani, quietone, catch, Tom Konda,...

Issue #3303557 by benjifisher, Binoli Lalani, quietone, catch, Tom Konda, smustgrave, nod_: Deprecate and remove the AJAX replace method
parent 50e1b6b2
No related branches found
No related tags found
No related merge requests found
......@@ -374,7 +374,7 @@ public static function preRenderAjaxForm($element) {
// @todo Legacy support. Remove in Drupal 8.
if (isset($settings['method']) && $settings['method'] == 'replace') {
@trigger_error('Using "replace" as the method in #ajax property is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use "replaceWith" instead. See https://www.drupal.org/project/drupal/issues/3303557', E_USER_DEPRECATED);
@trigger_error('Using "replace" as the method in #ajax property is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use "replaceWith" instead. See https://www.drupal.org/node/3450770', E_USER_DEPRECATED);
$settings['method'] = 'replaceWith';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment