BackendViewFactory
Read onlyYes
FinalYes
Creates a View for backend usage. This is a low level factory. Extensions typically use ModuleTemplate instead.
Table of Contents
Properties
Methods
- __construct() : mixed
- create() : ViewInterface
- This backend view is capable of overriding templates, partials and layouts via TsConfig based on the composer package name of the route and optional additional package names.
Properties
$packageManager
protected
PackageManager
$packageManager
$renderingContextFactory
protected
RenderingContextFactory
$renderingContextFactory
Methods
__construct()
public
__construct(RenderingContextFactory $renderingContextFactory, PackageManager $packageManager) : mixed
Parameters
- $renderingContextFactory : RenderingContextFactory
- $packageManager : PackageManager
create()
This backend view is capable of overriding templates, partials and layouts via TsConfig based on the composer package name of the route and optional additional package names.
public
create(ServerRequestInterface $request[, array<string|int, mixed> $packageNames = [] ]) : ViewInterface
Parameters
- $request : ServerRequestInterface
- $packageNames : array<string|int, mixed> = []