Mercurial > hg > isophonics-drupal-site
view core/modules/hal/src/Encoder/JsonEncoder.php @ 9:1fc0ff908d1f
Add another data file
author | Chris Cannam |
---|---|
date | Mon, 05 Feb 2018 12:34:32 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\hal\Encoder; use Drupal\serialization\Encoder\JsonEncoder as SerializationJsonEncoder; /** * Encodes HAL data in JSON. * * Simply respond to hal_json format requests using the JSON encoder. */ class JsonEncoder extends SerializationJsonEncoder { /** * The formats that this Encoder supports. * * @var string */ protected static $format = ['hal_json']; }