projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
modules
/
system
/
src
/
Controller
/
Http4xxController.php
diff --git
a/web/core/modules/system/src/Controller/Http4xxController.php
b/web/core/modules/system/src/Controller/Http4xxController.php
index f8c97e4f54a39f8e84782182f27d2918e755396c..ee8a9776d4d161290c02838c8e068750870a48aa 100644
(file)
--- a/
web/core/modules/system/src/Controller/Http4xxController.php
+++ b/
web/core/modules/system/src/Controller/Http4xxController.php
@@
-9,6
+9,18
@@
use Drupal\Core\Controller\ControllerBase;
*/
class Http4xxController extends 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.
*
/**
* The default 401 content.
*