Twig Extensions

Categories

Component ID

2632164

Component name

Twig Extensions

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

5634

Component created

Component changed

Component body

Porting Twig extensions to Drupal

http://twig-extensions.readthedocs.io/en/latest/index.html

Installation

Before enabling the module
This library can be installed via Composer running the following from the command line in your Drupal project root:

composer require twig/extensions

Then you may enable the module through the UI or drush:
drush en twig_extensions

Features

  • Text: Provides useful filters for text manipulation;
  • I18n: Adds internationalization support via the gettext
    library;
  • Intl: Adds a filter for localization of DateTime objects;
  • Array: Provides useful filters for array manipulation;
  • Date: Adds a filter for rendering the difference between dates.