Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / src / Controller / Http4xxController.php
index f8c97e4f54a39f8e84782182f27d2918e755396c..ee8a9776d4d161290c02838c8e068750870a48aa 100644 (file)
@@ -9,6 +9,18 @@ use Drupal\Core\Controller\ControllerBase;
  */
 class Http4xxController extends ControllerBase {
 
+  /**
+   * The default 4xx error content.
+   *
+   * @return array
+   *   A render array containing the message to display for 4xx errors.
+   */
+  public function on4xx() {
+    return [
+      '#markup' => $this->t('A client error happened'),
+    ];
+  }
+
   /**
    * The default 401 content.
    *