You are here

function persian_date_help in Persian Date for Drupal 8 8

Same name and namespace in other branches
  1. 8.4 persian_date.module \persian_date_help()

Implements hook_help().

File

./persian_date.module, line 14
Contains persian_date.module.

Code

function persian_date_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the persian_date module.
    case 'help.page.persian_date':
      $twig = \Drupal::getContainer()
        ->get('twig');
      $output = $twig
        ->renderInline(file_get_contents(__DIR__ . '/resources/templates/help.html.twig'));
      return $output;
    default:
  }
}