Module Description
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 8.1.x, install the module using CLI:


* Add the Drupal Packagist repository (if you haven't already)
* composer config repositories.drupal composer https://packages.drupal.org/8
* composer require drupal/twig_vardumper



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


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



Configure Drupal to work


* 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

This is the Twig Vardumper #Drupal module. Much more performant than Kint, especially when using vardumper(). Also, works in narrow spaces. pic.twitter.com/jMCt228rsf

— Amber Matz (@amberhimesmatz) 7 de junio de 2017

Project Usage
6441
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
Twig VarDumper aims to solve the issue of displaying Twig PHP variables in a visually appealing way for debugging purposes.
Data Name
twig_vardumper

OPENAI CHATBOT

OPENAI CHATBOT

14:30:43
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.