Commit 1fbe9a86 authored by ressa's avatar ressa Committed by C-Logemann
Browse files

Issue #3292671 by ressa: Add Help and Configure links on Extend page, add Help page

parent e5495fe0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3,5 +3,6 @@ type: module
description: Provides boost caching mechanism integration
core_version_requirement: ^8.8 || ^9
package: Boost
configure: boost.settings
dependencies:
  - path_alias
+18 −0
Original line number Diff line number Diff line
@@ -9,3 +9,21 @@
 * @todo, complete the example apache conf.
 * 
 */

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function boost_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    // Main module help.
    case 'help.page.boost':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Boost provides static page caching for Drupal enabling a very significant performance and scalability boost for sites that receive mostly <strong>anonymous traffic</strong>. For shared hosting this is your best option in terms of improving performance. On dedicated servers, you may want to consider Varnish instead.') . '</p>';
      $output .= '<h3>' . t('Install') . '</h3>';
      $output .= '<p>' . t('This is an advanced module and takes some extra effort to get it working correctly. Boost requires cron & clean urls to be working; you will also have to edit your .htaccess and robots.txt files. For more, visit <a href=":pk_url">Boost</a> module page.', [':pk_url' => 'https://www.drupal.org/project/boost']) . '</p>';
      return $output;
  }
}