Don't hardcode ajax callback path

Created on 4 September 2020, over 4 years ago
Updated 14 February 2025, 3 months ago

Problem/Motivation

When creating a subclass of \Drupal\tablefield\Element\Tablefield I noticed that the submit handlers for all the buttons are correctly set to be subclassable but the ajax callbacks are not.

Steps to reproduce

Look at any of the ajax callbacks in \Drupal\tablefield\Element\Tablefield.

Proposed resolution

Make the ajax callbacks use dynamic classes.

Remaining tasks

RTBC and merge.

User interface changes

None.

API changes

This will make overriding 'ajaxCallbackRebuild' in subclasses possible without having to rewrite the render array.

Data model changes

None.

🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024