Commit 495281e3 authored by J P's avatar J P Committed by Benjamin Melançon
Browse files

Issue #3266244 by loze, mlncn: Error code is not available in the...

Issue #3266244 by loze, mlncn: Error code is not available in the HOOK_preprocess_customerror() variables
parent d4ea873c
Loading
Loading
Loading
Loading
+1
Changes for customerror.module: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -94,6 +94,7 @@ function customerror_theme($existing, $type, $theme, $path) {
  return [
    'customerror' => [
      'variables' => [
        'error_code' => NULL,
        'description' => NULL,
        'login_form' => NULL,
      ],
+1
Changes for src/Controller/CustomErrorController.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -106,6 +106,7 @@ class CustomErrorController extends ControllerBase {
      '#theme' => 'customerror__' . $code,
      '#description' => $content,
      '#login_form' => $login_form,
      '#error_code' => $code,
    ];
  }