public function specificSuggestionAlter() { return ['#theme' => 'theme_test_specific_suggestions__variant'
];
} /**
* Controller to ensure that no theme is initialized.
*
* @return \Symfony\Component\HttpFoundation\JsonResponse
* The json response with the theme initialized information.
*/
public function nonHtml() { $theme_initialized = \Drupal::
theme()->
hasActiveTheme();
return new JsonResponse(['theme_initialized' =>
$theme_initialized]);
} /**
* Controller for testing preprocess functions with theme suggestions.
*/
public function preprocessSuggestions() { return [ [ '#theme' => 'theme_test_preprocess_suggestions',
'#foo' => 'suggestion',
],