Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295277

Deprecate drupal_attach_tabledrag(). Move its logic in Table form element

$
0
0

Problem/Motivation

Part of effort to deprecate procedural code in:

Proposed resolution

  • Move drupal_attach_tabledrag() functionality to \Drupal\Core\Render\Element\Table form element class as a public static method.
  • Deprecate drupal_attach_tabledrag()

Usage in contrib is http://grep.xnddx.ru/search?text=drupal_attach_tabledrag

Remaining tasks

review/commit

User interface changes

None.

API changes

  • New public static method on \Drupal\Core\Render\Element\Table::attachTabledrag() form element.
  • drupal_attach_tabledrag() is deprecated.
  • internal element selector changed to use data-drupal-tabledrag-id attribute instead of HTML ID (used only internally)

Data model changes

None.

Release notes snippet

N/A.


Viewing all articles
Browse latest Browse all 295277

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>