File tree 1 file changed +1
-2
lines changed
src/Drupal/Driver/Fields/Drupal8 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,13 @@ public function expand($values) {
33
33
$ target_bundle_key = $ entity_definition ->getKey ('bundle ' );
34
34
}
35
35
36
-
37
36
// The values can either be a direct label reference or a complex array
38
37
// containing multiple properties of the field. For example, the file field
39
38
// contains a target_id, a description and a display property. If the
40
39
// target_id exists as a property, we assume that the other properties are
41
40
// also present. Retrieve all labels and load the entities.
42
41
$ main_property = $ this ->fieldInfo ->getMainPropertyName ();
43
- $ labels = array_map (function ($ value ) use ($ main_property ){
42
+ $ labels = array_map (function ($ value ) use ($ main_property ) {
44
43
return is_array ($ value ) && isset ($ value [$ main_property ]) ? $ value [$ main_property ] : $ value ;
45
44
}, $ values );
46
45
You can’t perform that action at this time.
0 commit comments