
| Current Path : /var/www/html1/web/core/modules/system/tests/modules/theme_legacy_test/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html1/web/core/modules/system/tests/modules/theme_legacy_test/src/ThemeTestController.php |
<?php
namespace Drupal\theme_legacy_test;
use Drupal\Core\Controller\ControllerBase;
/**
* Controller routines for test routes for legacy theme functions.
*
* @todo Remove in https://www.drupal.org/project/drupal/issues/3097889
*/
class ThemeTestController extends ControllerBase {
/**
* A theme template that overrides a theme function.
*
* @return array
* Render array containing a theme.
*/
public function functionTemplateOverridden() {
return [
'#theme' => 'theme_test_function_template_override',
];
}
/**
* Menu callback for testing suggestion alter hooks with theme functions.
*/
public function functionSuggestionAlter() {
return ['#theme' => 'theme_test_function_suggestions'];
}
/**
* Menu callback for testing includes with suggestion alter hooks.
*/
public function suggestionAlterInclude() {
return ['#theme' => 'theme_test_suggestions_include'];
}
}