summaryrefslogtreecommitdiffstats
path: root/jsonapi_extras.module
blob: ad0548587b9bffa61d2aaa323bac06e671d78420 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

/**
 * @file
 * Module implementation file.
 */

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
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 resources available.') . '</p>';
      $output .= '<p>' . t("Use the overwrite operation to overwrite a resource's configuration. You can revert back to the default configuration using the revert operation.") . '</p>';
      return $output;
  }
}