Problem/Motivation

Currently block plugin order is pretty random. They are grouped, but e.g. the order of views block plugins is just based on the order in which loadMultiple() returns them from the storage.

Proposed resolution

The add block UI calls $definitions = $this->blockManager->getSortedDefinitions($definitions), lets add that too to \Drupal\block_field\BlockFieldManager::getBlockDefinitions().

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Berdir created an issue. See original summary.

marcoscano’s picture

Status: Active » Closed (duplicate)

I guess we can solve this directly in #2862204: Add support for block contexts (was: views arguments) , which seems to be where the dis-ordering happens.