`FieldPropExpression`: support multiple bundles using the same field name
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3548311. -->
Reported by: [vishalkhode](https://www.drupal.org/user/2439156)
Related to !144
>>>
<h3 id="overview">Overview</h3>
<p>When altering the image component via the <code>storage_prop_shape_alter()</code> hook, if multiple target bundles are added and different prop names are needed per media type. Then prop names are defined as an array, and they are keyed by the field name. However, if some media types share the same media source and thus the same field name, the prop name array's size does not match the bundle array's size. This causes the following error in FieldPropExpression:</p>
<pre>In FieldPropExpression.php line 81:<br> A field property name must be specified for every field name, and in the same order.</pre><h4 id="example-expression">Example Expression</h4>
<pre>ℹ︎entity_reference␟{src↝entity␜␜entity:media:acquia_dam_image_asset|custom_acquia_dam_image|image␝acquia_dam_image_item|acquia_dam_image_item|field_media_image␞␟src_with_alternate_widths|src_with_alternate_widths,alt↝entity␜␜entity:media:acquia_dam_image_asset|custom_acquia_dam_image|image␝acquia_dam_image_item|acquia_dam_image_item|field_media_image␞␟alt|alt,width↝entity␜␜entity:media:acquia_dam_image_asset|custom_acquia_dam_image|image␝acquia_dam_image_item|acquia_dam_image_item|field_media_image␞␟width|width,height↝entity␜␜entity:media:acquia_dam_image_asset|custom_acquia_dam_image|image␝acquia_dam_image_item|acquia_dam_image_item|field_media_image␞␟height|height}</pre><h3 id="proposed-resolution">Expected Result</h3>
<p>It should be possible to map different prop names per bundle, even if multiple bundles share the same field name.</p>
<h3 id="actual-result">Actual Result</h3>
<p>Validation fails due to array size mismatch between bundles and prop names, blocking the configuration.</p>
<h3 id="impact">Impact</h3>
<p>Cannot support multiple media types with shared field names and distinct prop mappings.</p>
> Related issue: [Issue #3519247](https://www.drupal.org/node/3519247)
> Related issue: [Issue #3530533](https://www.drupal.org/node/3530533)
> Related issue: [Issue #3530521](https://www.drupal.org/node/3530521)
issue