function big_pipe_help

Same name and namespace in other branches
  1. 9 core/modules/big_pipe/big_pipe.module \big_pipe_help()
  2. 8.9.x core/modules/big_pipe/big_pipe.module \big_pipe_help()
  3. 11.x core/modules/big_pipe/big_pipe.module \big_pipe_help()

Implements hook_help().

File

core/modules/big_pipe/big_pipe.module, line 15

Code

function big_pipe_help($route_name, RouteMatchInterface $route_match) {
    switch ($route_name) {
        case 'help.page.big_pipe':
            $output = '<h2>' . t('About') . '</h2>';
            $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 .= '<h2>' . t('Uses') . '</h2>';
            $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;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.