You are here

jsonapi_extras.module in JSON:API Extras 8

Same filename and directory in other branches
  1. 8.3 jsonapi_extras.module
  2. 8.2 jsonapi_extras.module

Module implementation file.

File

jsonapi_extras.module
View source
<?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;
  }
}

Functions

Namesort descending Description
jsonapi_extras_help Implements hook_help().