You are here

function twig_vardumper_help in Twig VarDumper 8.2

Same name and namespace in other branches
  1. 8 twig_vardumper.module \twig_vardumper_help()
  2. 3.0.x twig_vardumper.module \twig_vardumper_help()

Implements hook_help().

File

./twig_vardumper.module, line 13
Contains twig_vardumper.module.

Code

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:
  }
}