Adopt new DraggableListBuilderTrait in Drupal 10.3

Created on 24 June 2024, 10 months ago

Problem/Motivation

Drupal 10.3 now includes a new DraggableListBuilderTrait , specifically designed to work with content entities. If this module could adopt that trait to replace some custom implementations of similar capabilities, it should reduce ongoing support for this module.

Proposed resolution

The first step is really to evaluate the new trait, to understand what it would provide, and if adopting that is even feasible.

Remaining tasks

TBD

User interface changes

Ideally none.

API changes

TBD

Data model changes

TBD

Feature request
Status

Active

Version

2.1

Component

Code

Created by

🇨🇦Canada mandclu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mandclu
  • 🇨🇦Canada iStryker

    This is interesting. I believe draggableviews will have to have two (or multiple) options just like 7.x-2.x. DraggableListBuilderTrait seems to add a weight to an entity. This works for 90% of use cases. The other 10% are when you involve arguments (and filters) and groupings.

    Drupal 7 had 2 methods. Weights and Native. Native used its own table, where it saved the weight/order value along with all the arguments (as a javascript object).

Production build 0.71.5 2024