Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is a child issue of #2660058: [meta] Convert controller content to twig {% trans/endtrans %} templates per module
Problem/Motivation
Defining render arrays for static content in controllers is awkward. Let's use twig templates!
See the parent issue for instructions on how to convert the controller to use twig templates.
This issue covers the config_entity_example.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#4 | 2889472-4.patch | 3.31 KB | navneet0693 |
| |||
#3 | 2889472.patch | 3.34 KB | navneet0693 |
Comments
Comment #2
jalpesh CreditAttribution: jalpesh as a volunteer and at Cybage Software Pvt Ltd. commentedHi Miles,
Can you please share some more details on this issue. I have already work on similar issue but need some right direct to start with this issue.
Thanks.
Comment #3
navneet0693 CreditAttribution: navneet0693 as a volunteer and at QED42 commentedComment #4
navneet0693 CreditAttribution: navneet0693 as a volunteer and at QED42 commentedOops, sorry, earlier used git add -N to create patch. Recreated.
Comment #5
drugan CreditAttribution: drugan as a volunteer commentedSimilar approach as on the Block Example module. It makes the code consistent across all the example modules. Great!
Comment #7
Mile23Great, thanks!
@drugan: This is an ongoing effort to make the big text blocks translatable and easy to manage: #2660058: [meta] Convert controller content to twig {% trans/endtrans %} templates per module