`ComponentSourceInterface::inputToClientModel()` needs to support passing a host entity
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3513590. -->
Reported by: [larowlan](https://www.drupal.org/user/395439)
Related to !52
>>>
<h3 id="overview">Overview</h3>
<p>From the code comments</p>
<div class="codeblock">
<pre><span style="color: #000000"><span style="color: #0000BB"><?php<br></span><span style="color: #FF8000">// @todo To support DynamicPropSource, \Drupal\experience_builder\ComponentSource\ComponentSourceInterface::inputToClientModel() will need to be updated to allow a host entity to be passed in.<br></span><span style="color: #0000BB">?></span></span></pre></div>
<h3 id="proposed-resolution">Proposed resolution</h3>
<pre>- public function clientModelToInput(string $component_instance_uuid, Component $component, array $client_model, ?ConstraintViolationListInterface $violations = NULL): array;<br>+ public function clientModelToInput(string $component_instance_uuid, Component $component, array $client_model, ?FieldableEntityInterface $host_entity, ?ConstraintViolationListInterface $violations = NULL): array;</pre><p>
with</p>
<pre> * @param \Drupal\Core\Entity\FieldableEntityInterface|null $host_entity<br> * Host entity. Required when a component instance has inputs populated by<br> * DynamicPropSources.</pre><h3 id="ui-changes">User interface changes</h3>
<p>Until <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/canvas/issues/3541037" title="Status: Closed (fixed)">#3541037: Allow linking `ContentTemplate` SDC/code component instance props to fields (aka finally use `DynamicPropSource`s!)</a></span>: label suffixes for props populated by <code>DynamicPropSource</code>s, as seen in <img src="https://www.drupal.org/files/issues/2025-09-10/dynamic%20prop%20sources%20working.gif"></p>
issue