Right now, ConfigEntityListController::load() calls ConfigEntityBase::sort(), but it's always ConfigEntityBase, not necessarily the subclass that's being listed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tim.plunkett’s picture

Status: Active » Needs review
FileSize
644 bytes

Here's the fix, needs tests.

tim.plunkett’s picture

Here's a test.

Berdir’s picture

Status: Needs review » Reviewed & tested by the community

If this passes/fails as expected then this looks good to me. Test and fix is correct.

I think this is the proper behavior, otherwise sort() would have to be defined in a way that makes it obvious that it can't be overriden (static final) which would provide no benefits.

webchick’s picture

Status: Reviewed & tested by the community » Needs work

Sorry, this does not seem to apply for me. :(

tim.plunkett’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
2.16 KB

Ah, yes my own patch broke it :)
#1889854: Config import breaks on protected entity properties

Both added a method to the end of a file, I just put this one below the other, so setting back to RTBC.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

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