Which abilities do Drupal-specific Twig and Twig itself have to work with files?

Viewed 19

I'm interested in the full list of all possible abilities Drupal-specific Twig has to work with files, i.e. reading, writing, copying, renaming etc. Including all the abilities Twig itself has regardless of CMS. So please don't remove the tag Twig.

Yet I just know about loading template partials like

{% include '@themename/header.html.twig' %}

It's an example of reading a file by its filesystem path

Can Drupal-specific Twig or Twig itself also rename a file? Or copy with renaming? And so on

0 Answers
Related