You are here

twig_vardumper.module in Twig VarDumper 8.2

Same filename and directory in other branches
  1. 8 twig_vardumper.module
  2. 3.0.x twig_vardumper.module

File

twig_vardumper.module
View source
<?php

/**
 * @file
 * Contains twig_vardumper.module.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function twig_vardumper_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the twig_vardumper module.
    case 'help.page.twig_vardumper':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Twig vardumper provides a better {{ dump() }} and {{ vardumper() }} function that can help you debug Twig variables.') . '</p>';
      return $output;
    default:
  }
}

Functions

Namesort descending Description
twig_vardumper_help Implements hook_help().