|
@@ -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();
|