replicate.module in Replicate 8
Same filename and directory in other branches
Main methods of Replicate module.
File
replicate.moduleView source
<?php
/**
 * @file
 * Main methods of Replicate module.
 */
use Drupal\Core\Routing\RouteMatchInterface;
/**
 * Implements hook_help().
 */
function replicate_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.replicate':
      // Return a line-break version of the module README.txt.
      return check_markup(file_get_contents(__DIR__ . "/README.txt"));
  }
}Functions
| Name   | Description | 
|---|---|
| replicate_help | Implements hook_help(). | 
