Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / tests / modules / system_test / src / Controller / SystemTestController.php
index 5e49c2403b677defc9e641483d6f39c2556ee4ed..37eb87585d2fc22f224004dffc131b5cc381084f 100644 (file)
@@ -375,4 +375,11 @@ class SystemTestController extends ControllerBase {
     return $response;
   }
 
+  /**
+   * Returns a cacheable response with a custom cache control.
+   */
+  public function getCacheableResponseWithCustomCacheControl() {
+    return new CacheableResponse('Foo', 200, ['Cache-Control' => 'bar']);
+  }
+
 }