‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\View\BackendViewFactory Class Reference

Public Member Functions

 __construct (protected readonly RenderingContextFactory $renderingContextFactory, protected readonly PackageManager $packageManager,)
 
 create (ServerRequestInterface $request, array $packageNames=[])
 

Detailed Description

Creates a View for backend usage. This is a low level factory. Extensions typically use ModuleTemplate instead.

Definition at line 34 of file BackendViewFactory.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\View\BackendViewFactory::__construct ( protected readonly RenderingContextFactory  $renderingContextFactory,
protected readonly PackageManager  $packageManager 
)

Definition at line 36 of file BackendViewFactory.php.

Member Function Documentation

◆ create()

TYPO3\CMS\Backend\View\BackendViewFactory::create ( ServerRequestInterface  $request,
array  $packageNames = [] 
)

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.

Definition at line 45 of file BackendViewFactory.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Filelist\LinkHandler\AbstractResourceLinkHandler\createView().