From ef9fec7582de35cc5831cc327c17446904459f6d Mon Sep 17 00:00:00 2001 From: bach Date: Wed, 22 Sep 2021 21:26:36 +0200 Subject: [PATCH] fixed textprod tagsprod --- .gitignore | 1 + .vscode/launch.json | 2 +- .../Plugin/GraphQL/SchemaExtension/EnFrSchemaExtension.php | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c39c4dd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +\.vscode/* diff --git a/.vscode/launch.json b/.vscode/launch.json index f3e19e2..bb2664c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,7 +11,7 @@ "serverSourceRoot":"192.168.0.21" "port": 9001, "pathMappings": { - "/var/www/html/d8.materio.com/public_html": "${workspaceFolder}" + "/var/www/html/api/src": "${workspaceFolder}" }, }, { diff --git a/src/web/modules/custom/enfrancais_graphql/src/Plugin/GraphQL/SchemaExtension/EnFrSchemaExtension.php b/src/web/modules/custom/enfrancais_graphql/src/Plugin/GraphQL/SchemaExtension/EnFrSchemaExtension.php index 5d12034..8a27e4d 100644 --- a/src/web/modules/custom/enfrancais_graphql/src/Plugin/GraphQL/SchemaExtension/EnFrSchemaExtension.php +++ b/src/web/modules/custom/enfrancais_graphql/src/Plugin/GraphQL/SchemaExtension/EnFrSchemaExtension.php @@ -383,7 +383,7 @@ class EnFrSchemaExtension extends SdlSchemaExtensionPluginBase { ->map('type', $builder->fromValue('entity:node')) ->map('value', $builder->fromParent()) ->map('path', $builder->fromValue('field_degres_detrangement.value')) - ); + ); $registry->addFieldResolver('Textref', 'field_titre_regular', $builder->produce('property_path') @@ -525,7 +525,7 @@ class EnFrSchemaExtension extends SdlSchemaExtensionPluginBase { ->map('path', $builder->fromValue('field_video')) ); - $registry->addFieldResolver('Textprod', 'tags', + $registry->addFieldResolver('Textprod', 'tagsprod', $builder->produce('entity_reference') ->map('entity', $builder->fromParent()) ->map('field', $builder->fromValue('field_tag_prod'))