public function AjaxTestController::theme in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/ajax_test/src/Controller/AjaxTestController.php \Drupal\ajax_test\Controller\AjaxTestController::theme()
Returns the used theme.
1 string reference to 'AjaxTestController::theme'
- ajax_test.routing.yml in core/
modules/ system/ tests/ modules/ ajax_test/ ajax_test.routing.yml - core/modules/system/tests/modules/ajax_test/ajax_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ ajax_test/ src/ Controller/ AjaxTestController.php, line 162
Class
- AjaxTestController
- Provides content for dialog tests.
Namespace
Drupal\ajax_test\ControllerCode
public function theme() {
return [
'#markup' => 'Current theme: ' . \Drupal::theme()
->getActiveTheme()
->getName(),
];
}