Problem/Motivation
Part of effort to deprecate procedural code in:
- #3015538: [META] Deprecate contents of common.inc
- #1577902: [META] Remove all usages of drupal_static() & drupal_static_reset()
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.