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.
Problem/Motivation
Drupal has its own exception handling system, why should we have another one in twig?
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#3 | 2553993-3.patch | 1.94 KB | dawehner |
#2 | 2553993-1.patch | 1.33 KB | dawehner |
Comments
Comment #2
dawehnerHere is just an idea
Comment #3
dawehnerWe could inline it instead ...
Comment #4
Wim LeersSo, #3 is technically faster, but #2 is easier to keep up-to-date (in sync with Twig updates).
Right?
Comment #5
Wim LeersComment #6
dawehner#3 is just HEAD with one less function call in the tree
#2 is without any error handling.
Comment #7
dawehnerI was thinking about using the twig debug options as toggle between the two.
Comment #10
lauriiiIt would be cool to see example of how this looks. I guess this could be done at least by just adding some test coverage.