Skip to content
Snippets Groups Projects
README.md 835 B
Newer Older
Ivan's avatar
Ivan committed
# Twig Tweak
Ivan's avatar
Ivan committed
The Twig Tweak module provides a Twig extension with some useful functions
Samata  soni's avatar
Samata soni committed
and filters that can improve development experience.
Ivan's avatar
Ivan committed

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`).

Samata  soni's avatar
Samata soni committed
## Requirements

This module requires no modules outside of Drupal core.
Ivan's avatar
Ivan committed

Ivan's avatar
Ivan committed
## Installation
Samata  soni's avatar
Samata soni committed

- Install as you would normally install a contributed Drupal module. For further
Ivan's avatar
Ivan committed
information, see [Installing Drupal Modules](https://www.drupal.org/docs/extending-drupal/installing-drupal-modules).
Samata  soni's avatar
Samata soni committed

## Links

- Project page: https://www.drupal.org/project/twig_tweak
- Twig home page: https://twig.symfony.com/
- Drupal Twig documentation: https://www.drupal.org/docs/theming-drupal/twig-in-drupal