Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
#2326891: Convert system_element_info() to Element classes converted half of ajax.inc, but left the other behind for some reason.
Proposed resolution
Move the remaining function to RenderElement where it belongs, and move the @defgroup to core.api.php
Remaining tasks
User interface changes
None
API changes
ajax_process_form() removed
ajax_pre_render_element() removed
Comment | File | Size | Author |
---|---|---|---|
#17 | interdiff.txt | 964 bytes | star-szr |
#17 | 2319487-16.patch | 35.26 KB | star-szr |
#15 | 2319487-ajax-15.patch | 34.31 KB | tim.plunkett |
#9 | 2319487-ajax-8.patch | 34.31 KB | tim.plunkett |
#2 | ajax-inc-death-toll-2319487.1.patch | 35.68 KB | larowlan |
Comments
Comment #1
larowlanComment #2
larowlanTurns out we didn't have support for #process callbacks as services, so added it whilst I was at it.
Comment #3
jibranmissing space.
When?
Comment #4
kim.pepperCan we have an interface for this service?
Comment #5
dawehnerWe could point to @group ajax and its excellent documentation at the beginning of ajax.inc
One \Drupal to include them all
Can't the controller resolver handle that automatically internally?
Comment #6
dawehner.
Comment #7
XanoInstead of using ControllerResolver, we should probably use #2320491: Add a callable resolver.
Comment #8
tim.plunkettUpdated the issue summary now that we have #2311393: Remove hook_element_info() and all references to it
Comment #9
tim.plunkettComment #10
dawehnerAwesome!
Comment #11
Wim LeersOMG OMG OMG OMG AWESOME! At last :) Bye bye,
ajax.inc
!Comment #12
alexpottThis should have a change record or be attached to an existing one.
Comment #13
tim.plunkettAdded https://www.drupal.org/node/2341041
Comment #15
tim.plunkettConflicted with #2329703: [meta] Spellchecking Drupal, of all things.
Comment #16
Wim Leers#15: ROFL :D
Comment #17
star-szrFound a reference to ajax_process_form(), didn't fully re-wrap the docblock, I wanted a minimal diff. Still RTBC, just a minor docs update.
Comment #18
catchCommitted/pushed to 8.0.x, thanks!
Nice one to see green.
Comment #21
quietone CreditAttribution: quietone at PreviousNext commentedpublish change record