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

Issue fork graphql-3515245

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

andriy khomych created an issue. See original summary.

andriy khomych’s picture

Attached static drupal patch.

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

klausi’s picture

Status: Active » Needs review

@Andriy: I pushed some changes to the pull request, we can improve the AlterableSchemaTest to test the actual AlterableComposableSchema class.

klausi’s picture

Status: Needs review » Fixed

Merged, thanks!

Status: Fixed » Closed (fixed)

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