function menu_test_custom_403_404_callback

Callback for our custom 403 and 404 pages.

1 string reference to 'menu_test_custom_403_404_callback'
menu_test_menu in drupal/core/modules/system/tests/modules/menu_test/menu_test.module
Implements hook_menu().

File

drupal/core/modules/system/tests/modules/menu_test/menu_test.module, line 537
Dummy module implementing hook menu.

Code

function menu_test_custom_403_404_callback() {

  // When requested by one of the MenuTrailTestCase tests, record the final
  // active trail now that the user has been redirected to the custom 403 or
  // 404 page. See menu_test_init().
  if (Drupal::state()
    ->get('menu_test.record_active_trail') ?: FALSE) {
    Drupal::state()
      ->set('menu_test.active_trail_final', menu_get_active_trail());
  }
  return 'This is menu_test_custom_403_404_callback().';
}