You are here

function content_language_access_help in Content Language Access 8

Same name and namespace in other branches
  1. 6 content_language_access.module \content_language_access_help()
  2. 7 content_language_access.module \content_language_access_help()

Implements hook_help().

File

./content_language_access.module, line 66
This module provides access checking of the current language of the site.

Code

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

    // Main module help for the content_language_access module.
    case 'help.page.content_language_access':
      return '<p>' . t('Content Language Access Module restricts the access of only contents with language (except neutral language) that are equal of the actual Drupal language being accessed or others that were previous configured in the <a href=":content_language_access">admin page</a>.', [
        ':content_language_access' => Url::fromRoute('content_language_access.admin_form')
          ->toString(),
      ]) . '</p>';

    // Help for admin page for the content_language_access module.
    case 'content_language_access.admin_form':
      return '<p>' . t('This page provides an interface for configuring more languages that can be accessed from a Drupal language.') . '</p>' . '<p>' . t('Language of the content is detected based on the settings defined on <a href=":language_detection">Language detection and selection page</a>.', [
        ':language_detection' => Url::fromRoute('language.negotiation')
          ->toString(),
      ]) . '</p>';
  }
}