Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
graphql_export
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
graphql_export
Merge requests
!5
Add server_id to getSchemaPlugin
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add server_id to getSchemaPlugin
issue/graphql_export-3517264:3517264-graphql-4.11-requires
into
2.0.x
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Al Munnings
requested to merge
issue/graphql_export-3517264:3517264-graphql-4.11-requires
into
2.0.x
1 month ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#3517264
0
0
Merge request reports
Compare
2.0.x
2.0.x (base)
and
latest version
latest version
919606a9
1 commit,
1 month ago
1 file
+
3
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/GraphqlExportService.php
+
3
−
1
Options
@@ -46,11 +46,13 @@ class GraphqlExportService {
private
function
getSchemaPlugin
(
ServerInterface
$graphql_server
):
SchemaPluginInterface
{
$schema_name
=
$graphql_server
->
get
(
'schema'
);
$plugin_config
=
[
'server_id'
=>
$graphql_server
->
id
()];
/** @var \Drupal\graphql\Plugin\SchemaPluginInterface $plugin */
$plugin
=
$this
->
pluginManager
->
createInstance
(
$schema_name
);
$config
=
$graphql_server
->
get
(
'schema_configuration'
);
if
(
$plugin
instanceof
ConfigurableInterface
&&
$config
)
{
$plugin
->
setConfiguration
(
$config
[
$schema_name
]
??
[]);
$schema_config
=
$config
[
$schema_name
]
??
[];
$plugin
->
setConfiguration
(
$schema_config
+
$plugin_config
);
}
return
$plugin
;
Loading