Problem/Motivation

Add a weight system so the user can define the order of the blocks (e.g.)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork slots-3477579

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gashunk created an issue. See original summary.

gashunk’s picture

Status: Active » Needs review

Added a weight to the condition and tested the system. Check the code, please.

hydra’s picture

Status: Needs review » Needs work
gashunk’s picture

Status: Needs work » Needs review

harlor made their first commit to this issue’s fork.

harlor’s picture

If the implementation is approved - We should add some tests.

harlor’s picture

Ah and the MR contains the changes from #3518572: Add admin views for slots so we should merge this one first.

harlor’s picture

Todos:
- Implement tests
- Try to use getWeight methods by initializing plugins
- Move trait methods to slots weight service

harlor’s picture

Status: Needs review » Needs work
harlor’s picture

Status: Needs work » Needs review
drupatz’s picture

Status: Needs review » Reviewed & tested by the community

Tested with Drupal 11.2.4 --> works perfectly!

harlor’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • harlor committed 2818bd46 on 1.x authored by gashunk
    [#3477579] feat: Add weight condition
    
    By: gashunk
    By: hydra
    By: harlor...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.