You are here

public function UpgradeStatusTestErrorController::content in Upgrade Status 8

Same name and namespace in other branches
  1. 8.3 tests/modules/upgrade_status_test_error/src/Controller/UpgradeStatusTestErrorController.php \Drupal\upgrade_status_test_error\Controller\UpgradeStatusTestErrorController::content()
  2. 8.2 tests/modules/upgrade_status_test_error/src/Controller/UpgradeStatusTestErrorController.php \Drupal\upgrade_status_test_error\Controller\UpgradeStatusTestErrorController::content()

File

tests/modules/upgrade_status_test_error/src/Controller/UpgradeStatusTestErrorController.php, line 9

Class

UpgradeStatusTestErrorController

Namespace

Drupal\upgrade_status_test_error\Controller

Code

public function content() {
  menu_cache_clear_all();
  return [
    '#type' => 'markup',
    '#markup' => $this
      ->t('I am deprecated.'),
  ];
}