Problem/Motivation

Follow up from #3352984: Use httpMethod instead of type for AJAX get/post request property from @longwave

I am still concerned there is no test coverage for data-ajax-type / data-ajax-http-method but I suppose that shouldn't hold this up otherwise we have to do a deprecation dance and so that can be deferred to a followup.

Steps to reproduce

NA

Proposed resolution

Write test coverage for this

Remaining tasks

Write tests
Review

User interface changes

NA

API changes

NA

Data model changes

NA

Release notes snippet

Comments

smustgrave created an issue. See original summary.

longwave’s picture

Title: Add test coverage for data-ajax-type / data-ajax-http-method » Add test coverage for data-ajax-http-method attribute
Related issues: +#956186: Allow AJAX to use GET requests

data-ajax-type was renamed in #3352984: Use httpMethod instead of type for AJAX get/post request property but there were no test changes required, so it looks like there is no test coverage for this feature.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.