From 832a021ccbd5319ee07cf88c7692e2528570a25b Mon Sep 17 00:00:00 2001 From: Alison Jo <1861-alison@users.noreply.drupalcode.org> Date: Sat, 27 May 2023 05:26:18 +0000 Subject: [PATCH] Issue #3363045: Feature(s) missing documentation --- README.md | 4 ++++ docs/cheat-sheet.md | 1 + 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index f2d73d4..e1dfde8 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,10 @@ The Twig Tweak module provides a Twig extension with some useful functions 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 This module requires no modules outside of Drupal core. diff --git a/docs/cheat-sheet.md b/docs/cheat-sheet.md index 3984027..af0b102 100644 --- a/docs/cheat-sheet.md +++ b/docs/cheat-sheet.md @@ -226,6 +226,7 @@ images when used in an `` tag. ``` ## Format size +Generates a string representation for the given byte count. ```twig {{ 12345|format_size }} ```