function ThemeTestController::nonHtml
Same name in other branches
- 9 core/modules/system/tests/modules/theme_test/src/ThemeTestController.php \Drupal\theme_test\ThemeTestController::nonHtml()
- 8.9.x core/modules/system/tests/modules/theme_test/src/ThemeTestController.php \Drupal\theme_test\ThemeTestController::nonHtml()
- 10 core/modules/system/tests/modules/theme_test/src/ThemeTestController.php \Drupal\theme_test\ThemeTestController::nonHtml()
Controller to ensure that no theme is initialized.
Return value
\Symfony\Component\HttpFoundation\JsonResponse The json response with the theme initialized information.
1 string reference to 'ThemeTestController::nonHtml'
- theme_test.routing.yml in core/
modules/ system/ tests/ modules/ theme_test/ theme_test.routing.yml - core/modules/system/tests/modules/theme_test/theme_test.routing.yml
File
-
core/
modules/ system/ tests/ modules/ theme_test/ src/ ThemeTestController.php, line 111
Class
- ThemeTestController
- Controller routines for theme test routes.
Namespace
Drupal\theme_testCode
public function nonHtml() {
$theme_initialized = \Drupal::theme()->hasActiveTheme();
return new JsonResponse([
'theme_initialized' => $theme_initialized,
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.