some comments on materio_graphql

This commit is contained in:
Bachir Soussi Chiadmi 2021-02-26 23:51:52 +01:00
parent a6f28da58f
commit aab0c6a3e5
1 changed files with 4 additions and 1 deletions

View File

@ -487,9 +487,12 @@ class MaterioSchemaExtension extends SdlSchemaExtensionPluginBase {
// $builder->produce('entity_reference')
// ->map('entity', $builder->fromParent())
// ->map('field', $builder->fromValue('field_linked_materials'))
// ->map('language', $builder->fromValue('fr')) // this is not working
// // ->map('language', $builder->fromValue('fr')) // this is not working
// // ->map('language', $builder->produce('entity_language')
// // ->map('entity', $builder->fromParent())) // neither that
// THIS USED TO WORK but not anymore :(
// invalid language translation (fr) provided
$builder->compose(
$builder->callback(function($parent, $args){
$linkedmaterials = $parent->get('field_linked_materials')->getValue();