|
@@ -536,13 +536,20 @@ class EnFrSchemaExtension extends SdlSchemaExtensionPluginBase {
|
|
->map('entity', $builder->fromParent())
|
|
->map('entity', $builder->fromParent())
|
|
->map('field', $builder->fromValue('field_famille'))
|
|
->map('field', $builder->fromValue('field_famille'))
|
|
);
|
|
);
|
|
- //
|
|
|
|
- // $registry->addFieldResolver('Textprod', 'field_titre',
|
|
|
|
- // $builder->produce('property_path')
|
|
|
|
- // ->map('type', $builder->fromValue('entity:node'))
|
|
|
|
- // ->map('value', $builder->fromParent())
|
|
|
|
- // ->map('path', $builder->fromValue('field_titre'))
|
|
|
|
- // );
|
|
|
|
|
|
+
|
|
|
|
+ $registry->addFieldResolver('Textprod', 'field_titre_regular',
|
|
|
|
+ $builder->produce('property_path')
|
|
|
|
+ ->map('type', $builder->fromValue('entity:node'))
|
|
|
|
+ ->map('value', $builder->fromParent())
|
|
|
|
+ ->map('path', $builder->fromValue('field_titre_regular.value'))
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ $registry->addFieldResolver('Textprod', 'field_titre_italique',
|
|
|
|
+ $builder->produce('property_path')
|
|
|
|
+ ->map('type', $builder->fromValue('entity:node'))
|
|
|
|
+ ->map('value', $builder->fromParent())
|
|
|
|
+ ->map('path', $builder->fromValue('field_titre.value'))
|
|
|
|
+ );
|
|
|
|
|
|
$registry->addFieldResolver('Textprod', 'auteurs',
|
|
$registry->addFieldResolver('Textprod', 'auteurs',
|
|
$builder->produce('entity_reference')
|
|
$builder->produce('entity_reference')
|
|
@@ -585,7 +592,7 @@ class EnFrSchemaExtension extends SdlSchemaExtensionPluginBase {
|
|
->map('path', $builder->fromValue('field_numero.value'))
|
|
->map('path', $builder->fromValue('field_numero.value'))
|
|
);
|
|
);
|
|
|
|
|
|
- $registry->addFieldResolver('Noteprod', 'liens',
|
|
|
|
|
|
+ $registry->addFieldResolver('Noteref', 'liens',
|
|
$builder->produce('entity_reference')
|
|
$builder->produce('entity_reference')
|
|
->map('entity', $builder->fromParent())
|
|
->map('entity', $builder->fromParent())
|
|
->map('field', $builder->fromValue('field_text_lien'))
|
|
->map('field', $builder->fromValue('field_text_lien'))
|