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.
When twigify finishes running, display feedback to user describing which tpl.php had sections that were not able to be automatically converted and need manual conversion attention.
Comments
Comment #1
elephant.jim CreditAttribution: elephant.jim commentedSounds ilke a good idea. Would you like to see a list of files in the drush output that contain content the Twigifier couldn't understand?
You can always search your theme's templates directory for "{# PHP:" twig comments. They contain code the twigifier couldn't understand. We still need to write some documentation.
But a fair warning: you should always be reviewing the output. There are differences in theming between D7 and D8 that take much more intelligent reasoning to convert (much more intelligent than our simple translator).
Comment #2
forestmars CreditAttribution: forestmars commentedThis is part of the Twigify roadmap.
Also, we need to be clear on the difference between *files* Twigify can't understand, and *code blocks* the current version doesn't convert. Code blocks that don't match a current Twigify rule are wrapped in Twig comments. We'll be adding an audit report that tells you at least how many of those Twigify found, as well as any additional relevant information.
Comment #3
joelpittetWhat is this postponed on? Maybe needs more info?