Problem/Motivation
When all extensions are sorted by priority it is hard to access them later by plugin ID.
The real usage case is when AlterableComposableSchema and specific plugin information have to be replaced.
Proposed resolution
Presave extensions' keys to access them later.
Known workarounds
Process the list of all extensions and check the plugin ID.
API changes
Replace usort with uasort in the SchemaExtensionPluginManager::sortByPriority
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | graphql-presave-extensions-keys-after-priority-sorting-3515245.patch | 1.16 KB | andriy khomych |
Issue fork graphql-3515245
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
Comment #3
andriy khomych commentedAttached static drupal patch.
Comment #5
klausi@Andriy: I pushed some changes to the pull request, we can improve the AlterableSchemaTest to test the actual AlterableComposableSchema class.
Comment #7
klausiMerged, thanks!