6e52eea342bba4dd95525e801ae6543f384ad909
[yaffs-website] / web / core / modules / system / tests / modules / default_format_test / src / DefaultFormatTestController.php
1 <?php
2
3 namespace Drupal\default_format_test;
4
5 use Drupal\Core\Cache\CacheableResponse;
6 use Symfony\Component\HttpFoundation\Request;
7
8 class DefaultFormatTestController {
9
10   public function content(Request $request) {
11     $format = $request->getRequestFormat();
12     return new CacheableResponse('format:' . $format, 200, ['Content-Type' => $request->getMimeType($format)]);
13   }
14
15 }