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

Created on 24 February 2019, almost 6 years ago
Updated 3 May 2023, over 1 year ago

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 attribute instead of HTML ID (used only internally)

Data model changes

None.

Release notes snippet

N/A.

πŸ“Œ Task
Status

Needs review

Version

10.1 ✨

Component
FormΒ  β†’

Last updated 3 minutes ago

Created by

πŸ‡·πŸ‡΄Romania claudiu.cristea Arad πŸ‡·πŸ‡΄

Live updates comments and jobs are added and updated live.
  • JavaScript

    Affects the content, performance, or handling of Javascript.

Sign in to follow issues

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