function farm_api_restws_format_info_alter in farmOS 7
Implements hook_restws_format_info_alter().
Overrides the default JSON handler from restws with our own.
File
- modules/
farm/ farm_api/ farm_api.module, line 359 - Farm API module.
Code
function farm_api_restws_format_info_alter(&$format_info) {
$format_info['json']['class'] = '\\Drupal\\farm_api\\RestWS\\Format\\FarmFormatJSON';
}