JsonEncoder.php in Drupal 8
Same filename in this branch
Same filename and directory in other branches
Namespace
Drupal\hal\EncoderFile
core/modules/hal/src/Encoder/JsonEncoder.phpView 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',
];
}
Classes
Name![]() |
Description |
---|---|
JsonEncoder | Encodes HAL data in JSON. |