File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/Drupal/Driver/Fields/Drupal8 Expand file tree Collapse file tree 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) {
3333 $ target_bundle_key = $ entity_definition ->getKey ('bundle ' );
3434 }
3535
36-
3736 // The values can either be a direct label reference or a complex array
3837 // containing multiple properties of the field. For example, the file field
3938 // contains a target_id, a description and a display property. If the
4039 // target_id exists as a property, we assume that the other properties are
4140 // also present. Retrieve all labels and load the entities.
4241 $ main_property = $ this ->fieldInfo ->getMainPropertyName ();
43- $ labels = array_map (function ($ value ) use ($ main_property ){
42+ $ labels = array_map (function ($ value ) use ($ main_property ) {
4443 return is_array ($ value ) && isset ($ value [$ main_property ]) ? $ value [$ main_property ] : $ value ;
4544 }, $ values );
4645
You can’t perform that action at this time.
0 commit comments