Overview
Follow up from #3489106: Show page information in top bar
It'd be beneficial to send the entity keys along with the entity ID and type to the editor, so they can be accessible via configSlice
Proposed resolution
\Drupal\experience_builder\Controller\ExperienceBuilderController::__invoke also pushes the entity type's keys into the settings.
User interface changes
Issue fork experience_builder-3501847
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
akhil babuUpdated the controller to send the entity type keys
Comment #5
akhil babuPlease review
Comment #6
wim leersComment #7
akhil babuI have updated to use camel casing. Please review
Comment #8
akhil babuComment #9
akhil babuConflicts
Comment #12
akhil babuCreated a new MR. This time I am using snake_case for all parameters as it was more simpler to implement 😬
Comment #13
wim leersDiscussed with XB's front-end lead, @jessebaker. He'd like us to standardize on
camelCase.Sorry 😅 … but could you adjust the MR accordingly? 😇 I promise a swift review + commit!
Comment #15
akhil babuThanks for the review @wimleers. I have updated the code to camelCase. Changes are made to the
drupalsettings.xbvalues. Please reviewComment #16
wim leersComment #17
wim leersThis is RTBC, but now conflicts with upstream. :) Almost!
Comment #18
akhil babuResolved the conflicts and rebased. Thanks
Comment #19
wim leersThanks!
Comment #21
wim leers