Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twig compile - provide searchpaths argument #5971

Open
drupalranger opened this issue Apr 26, 2024 · 0 comments
Open

Twig compile - provide searchpaths argument #5971

drupalranger opened this issue Apr 26, 2024 · 0 comments

Comments

@drupalranger
Copy link

drupalranger commented Apr 26, 2024

Is your feature request related to a problem? Please describe.
When running drush twigc in drush 12, it will compile templates for all modules and all themes that exist in filesystem, without taking application setup into account, and without checking if the modules/themes are actually installed or not. It would be nice to have a quick way to decide which directories should be processed.

Describe the solution you'd like
Leave default functionality as it is, but allow to override $searchpaths parameters, so we can decide which directories we want to compile. Existing example is already available in twig:unused command.

Describe alternatives you've considered
Create custom drush command I guess.

Additional context
I simply would like to compile templates only for some selected directories, not for all modules and themes that are available in the filesystem. I believe leaving default command behavior as it is + adding optional argument will be the quickest way to achieve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant