fixed textprod tagsprod

This commit is contained in:
2021-09-22 21:26:36 +02:00
parent 9ba62c78b1
commit ef9fec7582
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
\.vscode/*
+1 -1
View File
@@ -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}"
},
},
{
@@ -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'))