Browse Source

Issue #3363045: Feature(s) missing documentation

merge-requests/33/head
Alison Jo 2 years ago committed by Ivan
parent
commit
832a021ccb
  1. 4
      README.md
  2. 1
      docs/cheat-sheet.md

4
README.md

@ -3,6 +3,10 @@
The Twig Tweak module provides a Twig extension with some useful functions The Twig Tweak module provides a Twig extension with some useful functions
and filters that can improve development experience. and filters that can improve development experience.
Some functions and filters are built in the Twig Tweak module, while others are
simple wrappers to integrate Drupal functions and services into Twig (for
example: `format_size`, `drupal_view_result`).
## Requirements ## Requirements
This module requires no modules outside of Drupal core. This module requires no modules outside of Drupal core.

1
docs/cheat-sheet.md

@ -226,6 +226,7 @@ images when used in an `<img/>` tag.
``` ```
## Format size ## Format size
Generates a string representation for the given byte count.
```twig ```twig
{{ 12345|format_size }} {{ 12345|format_size }}
``` ```

Loading…
Cancel
Save