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

jeevanbhushetty’s picture

Assigned: Unassigned » jeevanbhushetty

On it.

jeevanbhushetty’s picture

Assigned: jeevanbhushetty » Unassigned
Status: Active » Needs review
FileSize
1.91 KB
navneet0693’s picture

Status: Needs review » Needs work
+++ b/block_example/templates/description.html.twig
@@ -0,0 +1,12 @@
\ No newline at end of file

Add a new line :)

jeevanbhushetty’s picture

Assigned: Unassigned » jeevanbhushetty
jeevanbhushetty’s picture

Assigned: jeevanbhushetty » Unassigned
Status: Needs work » Needs review
FileSize
576 bytes
1.88 KB
navneet0693’s picture

Status: Needs review » Reviewed & tested by the community

Clear to go :)

Mile23’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed. Thanks!

Status: Fixed » Closed (fixed)

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