Problem/Motivation

When using graphql_core_schema 1.0.23 or 1.0.24 with graphql 4.7.0, I get an exception:

Error: Call to undefined method Drupal\graphql\Plugin\SchemaExtensionPluginManager::sortByPriority() in Drupal\graphql_core_schema\Plugin\GraphQL\Schema\CoreComposableSchema->getExtensions() (line 196 of modules/contrib/graphql_core_schema/src/Plugin/GraphQL/Schema/CoreComposableSchema.php). 

Drupal\graphql_core_schema\Plugin\GraphQL\Schema\CoreComposableSchema->getExtensions() (Line: 210)
Drupal\graphql_core_schema\Plugin\GraphQL\Schema\CoreComposableSchema->buildConfigurationForm() (Line: 163)
Drupal\graphql\Form\ServerForm->form() (Line: 106)
Drupal\Core\Entity\EntityForm->buildForm()
call_user_func_array() (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 283)

SchemaExtensionPluginManager::sortByPriority is available since graphql 8.x-4.11 with commit a5628917e2.

graphql_core_schema 1.0.23 uses this method since commit 3cdb83 - but the module fails to declare the new minimal graphql version it needs.

Proposed resolution

Mark 1.0.23, 1.0.24 and later as requiring at least graphql 4.11.

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

cweiske created an issue.