Deprecate the AJAX RenderElement

Created on 12 July 2019, over 5 years ago
Updated 17 January 2023, almost 2 years ago

Problem/Motivation

I found that @RenderElement("ajax") (Drupal\Core\Render\Element\Ajax) is not used. What's is the purpose? Looks like this was the thing in Drupal 7 when we need to return plain JSON response without full page markup. But in Drupal 8 there are other and better ways to do this.

This render element not used by core and any contrib module. Looks like this is dead code.

Proposed resolution

  • If the element is involved somewhere, it is necessary to write a more detailed comment to the element, because now it is not clear its purpose.
  • If it is not used anywhere, and it looks like neither the core nor the contrib modules are using it, it should be removed, as it is a useless piece of code.

Remaining tasks

  • Understand, why we have this element.
  • Decide what to do with it.
  • Do it :)

User interface changes

The interface won't get hurt in any way.

API changes

Looks like 0 API changes.

Data model changes

No data model changes.

πŸ“Œ Task
Status

Fixed

Version

10.1 ✨

Component
RenderΒ  β†’

Last updated about 9 hours ago

Created by

πŸ‡·πŸ‡ΊRussia niklan Russia, Perm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024