Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / modules / default_format_test / src / DefaultFormatTestController.php
diff --git a/web/core/modules/system/tests/modules/default_format_test/src/DefaultFormatTestController.php b/web/core/modules/system/tests/modules/default_format_test/src/DefaultFormatTestController.php
new file mode 100644 (file)
index 0000000..6e52eea
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+namespace Drupal\default_format_test;
+
+use Drupal\Core\Cache\CacheableResponse;
+use Symfony\Component\HttpFoundation\Request;
+
+class DefaultFormatTestController {
+
+  public function content(Request $request) {
+    $format = $request->getRequestFormat();
+    return new CacheableResponse('format:' . $format, 200, ['Content-Type' => $request->getMimeType($format)]);
+  }
+
+}