Problem/Motivation
When theming a Storage entity in twig, I can access the entity itself like this:
{{ elements['#storage'] }}
Most core entities go a step further and add their entity to the first level of Twig variables, so they can be accessed like this:
{{ node }}
{{ user }}
Proposed resolution
Do the same thing for storage entities, for consistency with Drupal core and better themer experience.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | storage-321744-2.patch | 470 bytes | les lim |
Issue fork storage-3217444
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 #2
les limPatch here.
Comment #4
les limJust trying out these issue forks for the first time, sorry for the noise. The MR is identical to the patch.
Comment #5
nanakFixed my issue, and inline with other entity types
Comment #7
mandclu commentedThanks for your work on this! Merged in, and will try to create a new release in the coming days.