Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: Layout Paragraphs 3.0.0-beta5 — New beta version released for module layout_paragraphs (3.0.0-beta5). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

Twig VarDumper

6,722 sites Security covered Drupal 10–11

Part of the Twig ecosystem · 43 projects

View on drupal.org

This module enhances Twig debugging by providing improved `dump()` and `vardumper()` functions. These functions allow you to easily inspect and debug Twig variables within your templates, offering a more detailed and user-friendly output compared to default methods.

Provides a way to display Twig PHP variables in a pretty way.

Twig VarDumper provides a better {{ dump() }} and {{ vardumper() }} function that can help you debug Twig variables.

API functions

  • {{ dump() }} Show all variables y current template. Replaced default {{ dump() }} from Twig Debug.php using symfony/var-dumper
  • {{ dump(variable_name) }} Show current variable informartion using symfony/var-dumper
  • {{ vardumper() }} Show all variables y current template using symfony/var-dumper
  • {{ vardumper(variable_name) }} Show current variable informartion using symfony/var-dumper

INSTALLATION

On Drupal 11.x.x, install the module using CLI:

  1. Require and install the module and its dependencies
    • composer config repositories.drupal composer https://packages.drupal.org/11
    • composer require drupal/twig_vardumper:^3

Configure Drupal to work

  1. Set development environment for twig
    • Uncomnet in settings.local.php file $settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml'; line
    • Add in development.services.yml
    • parameters:
      twig.config:
      debug: true

DEMO

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Jan 2024
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
3.2.1 Stable 10–11 Aug 18, 2026
3.2.0 Stable 9–11 Sep 12, 2024
3.2.x-dev Dev 10–11 Sep 12, 2024
3.1.1 Stable 9–10 Jan 18, 2024