Mercurial > hg > cmmr2012-drupal-site
view core/modules/hal/src/Encoder/JsonEncoder.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
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']; }