How to find unused variables in a template?

Viewed 56

Legacy code, is preparing a lot of data, and sometimes it is not used in rendered TWIG template.

Is there a way to know, what wasn't use during rendering process?

Will be nice to see, or force to render all other data, that was not touched.

PS: my idea is just get rid of that not used things, and will be nice to find and see them, with not digging to millions lines of code

PS2: twig is used as separate composer package, and is not connected neither Symphony or Drupal

0 Answers
Related