Object props produce 500 error
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3590280. --> Reported by: [lostcarpark](https://www.drupal.org/user/346773) Related to !10 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Props of type "object" expect a render array (except for Canvas image props, which are a special case we'll ignore for now). Currently assigning a field to an object prop results in a 500 error.</p> <p>Thanks to Mike Herchel (mherchel) for reporting.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Choose a SDC with an "object" property. Assign a field and display the view. Error!</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>We currently use a render array for slots, so should be able to use the same logic for object props.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <ol> <li>Create a test component with an object prop.</li> <li>Add a test case that builds a view with a field in the object prop. Verify it fails.</li> <li>Add logic to return render array for object props.</li> <li>Verify tests pass.</li> </ol> <h3 id="summary-ui-changes">User interface changes</h3> <p>None</p> <h3 id="summary-api-changes">API changes</h3> <p>None</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>None</p>
issue