public function ThemeCompilerControllerInterface::serve in Theme Compiler 2.0.x
Return a response containing the result of compiling the requested context.
Parameters
\Drupal\compiler\CompilerContextInterface $theme_compiler_context: A compiler context used to define a compilation.
Return value
\Symfony\Component\HttpFoundation\Response A response containing the result of the compiled context.
1 method overrides ThemeCompilerControllerInterface::serve()
- ThemeCompilerController::serve in src/
Controller/ ThemeCompilerController.php - Serve a theme compiler asset as a cacheable response.
File
- src/
ThemeCompilerControllerInterface.php, line 32
Class
- ThemeCompilerControllerInterface
- Defines the interface of the theme compiler controller.
Namespace
Drupal\theme_compilerCode
public function serve(CompilerContextInterface $theme_compiler_context) : Response;