some comments on materio_graphql
This commit is contained in:
parent
a6f28da58f
commit
aab0c6a3e5
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue