You are here

public function UpgradeStatusTestContribErrorController::content in Upgrade Status 8

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

File

tests/modules/upgrade_status_test_contrib_error/src/Controller/UpgradeStatusTestContribErrorController.php, line 12

Class

UpgradeStatusTestContribErrorController
Test class which contains deprecation error.

Namespace

Drupal\upgrade_status_test_contrib_error\Controller

Code

public function content() {
  return [
    '#type' => 'markup',
    '#markup' => format_string('I am @deprecated', [
      '@deprecated' => 'deprecated',
    ]),
  ];
}