Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / serialization / src / Encoder / JsonEncoder.php
index ad085ac00aa88c9b7bfb213de821cd212370d64e..964c2951f60b112c681981dc806f5d17f49d1a43 100644 (file)
@@ -10,6 +10,10 @@ use Symfony\Component\Serializer\Encoder\JsonEncoder as BaseJsonEncoder;
 
 /**
  * Adds 'ajax to the supported content types of the JSON encoder'
+ *
+ * @internal
+ *   This encoder should not be used directly. Rather, use the `serializer`
+ *   service.
  */
 class JsonEncoder extends BaseJsonEncoder implements EncoderInterface, DecoderInterface {