Skip to content

Commit

Permalink
Add drush sset examples for new Twig debugging / caching settings (#5614
Browse files Browse the repository at this point in the history
)

* Add drush sset examples for new Twig debugging / caching settings

* Change casing of TRUE
  • Loading branch information
DieterHolvoet committed Jun 7, 2023
1 parent bbd54a6 commit e54107f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Commands/core/StateCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public function get(string $key, $options = ['format' => 'string']): PropertyLis
#[CLI\Usage(name: 'drush sset system.maintenance_mode 1 --input-format=integer', description: 'Put site into Maintenance mode.')]
#[CLI\Usage(name: 'drush state:set system.cron_last 1406682882 --input-format=integer', description: 'Sets a timestamp for last cron run.')]
#[CLI\Usage(name: 'php -r "print json_encode(array(\'drupal\', \'simpletest\'));" | drush state-set --input-format=json foo.name -', description: 'Set a key to a complex value (e.g. array)')]
#[CLI\Usage(name: 'drush state:set twig_debug TRUE', description: 'Enable the Twig debug mode (since Drupal 10.1)')]
#[CLI\Usage(name: 'drush state:set twig_autoreload TRUE', description: 'Enable Twig auto reload (since Drupal 10.1)')]
#[CLI\Usage(name: 'drush state:set twig_cache_disable TRUE', description: 'Disable the Twig, page, render and dynamic page caches (since Drupal 10.1)')]
public function set(string $key, $value, $options = ['input-format' => 'auto']): void
{

Expand Down

0 comments on commit e54107f

Please sign in to comment.