You are here

function jsonapi_extras_help in JSON:API Extras 8.3

Same name and namespace in other branches
  1. 8 jsonapi_extras.module \jsonapi_extras_help()
  2. 8.2 jsonapi_extras.module \jsonapi_extras_help()

Implements hook_help().

File

./jsonapi_extras.module, line 13
Module implementation file.

Code

function jsonapi_extras_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'entity.jsonapi_resource_config.collection':
      $output = '';
      $output .= '<p>' . t('The following table shows the list of JSON:API resource types available.') . '</p>';
      $output .= '<p>' . t("Use the overwrite operation to overwrite a resource type's configuration. You can revert back to the default configuration using the revert operation.") . '</p>';
      return $output;
  }
}