function big_pipe_help

big_pipe_help($route_name, RouteMatchInterface $route_match)

Implements hook_help().

File

core/modules/big_pipe/big_pipe.module, line 15
Adds BigPipe no-JS detection.

Code

function big_pipe_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.big_pipe':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The BigPipe module sends pages with dynamic content in a way that allows browsers to show them much faster. For more information, see the <a href=":big_pipe-documentation">online documentation for the BigPipe module</a>.', [':big_pipe-documentation' => 'https://www.drupal.org/documentation/modules/big_pipe']) . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Speeding up your site') . '</dt>';
      $output .= '<dd>' . t('The module requires no configuration. Every part of the page contains metadata that allows BigPipe to figure this out on its own.') . '</dd>';
      $output .= '</dl>';

      return $output;
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!big_pipe!big_pipe.module/function/big_pipe_help/8.1.x