NewRecordController
Read onlyYes
FinalYes
Renders the 'Create new record' view of the 'db_new' route, reachable from the records module, listing the record types a user may create on a given page.
This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.
Attributes
- #[AsController]
Table of Contents
Methods
- __construct() : mixed
- mainAction() : ResponseInterface
- Collects the record types creatable on the requested page and renders the selection view, redirecting straight to the edit form when only a single creation target is available.
Methods
__construct()
public
__construct(ComponentFactory $componentFactory, ConnectionPool $connectionPool, IconFactory $iconFactory, PageDoktypeRegistry $pageDoktypeRegistry, PageRenderer $pageRenderer, PackageManager $packageManager, UriBuilder $uriBuilder, RecordFactory $recordFactory, ModuleTemplateFactory $moduleTemplateFactory, TcaSchemaFactory $tcaSchemaFactory, EventDispatcherInterface $eventDispatcher, SystemResourceFactory $resourceFactory, SystemResourcePublisherInterface $resourcePublisher, SchemaLabelResolver $schemaLabelResolver) : mixed
Parameters
- $componentFactory : ComponentFactory
- $connectionPool : ConnectionPool
- $iconFactory : IconFactory
- $pageDoktypeRegistry : PageDoktypeRegistry
- $pageRenderer : PageRenderer
- $packageManager : PackageManager
- $uriBuilder : UriBuilder
- $recordFactory : RecordFactory
- $moduleTemplateFactory : ModuleTemplateFactory
- $tcaSchemaFactory : TcaSchemaFactory
- $eventDispatcher : EventDispatcherInterface
- $resourceFactory : SystemResourceFactory
- $resourcePublisher : SystemResourcePublisherInterface
- $schemaLabelResolver : SchemaLabelResolver
mainAction()
Collects the record types creatable on the requested page and renders the selection view, redirecting straight to the edit form when only a single creation target is available.
public
mainAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface