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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mile23 created an issue. See original summary.

jalpesh’s picture

Hi 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.

navneet0693’s picture

Status: Active » Needs review
FileSize
3.34 KB
navneet0693’s picture

Oops, sorry, earlier used git add -N to create patch. Recreated.

drugan’s picture

Status: Needs review » Reviewed & tested by the community

Similar approach as on the Block Example module. It makes the code consistent across all the example modules. Great!

  • Mile23 committed 7d3e4f1 on 8.x-1.x authored by navneet0693
    Issue #2889472 by navneet0693, jalpesh, drugan: Convert RobotListBuilder...
Mile23’s picture

Status: Reviewed & tested by the community » Fixed

Great, 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

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.