EditFileController
Edit text files via FormEngine. Reachable via FileList module "Edit content".
This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.
Attributes
- #[AsController]
Table of Contents
Properties
- $dataColumnTca : array<string|int, mixed>
- $eventDispatcher : EventDispatcherInterface
- $formEngineData : array<string|int, mixed>
- $iconFactory : IconFactory
- $moduleTemplateFactory : ModuleTemplateFactory
- $nodeFactory : NodeFactory
- $resourceFactory : ResourceFactory
- $responseFactory : ResponseFactory
- $streamFactory : StreamFactoryInterface
- $uriBuilder : UriBuilder
Methods
- __construct() : mixed
- mainAction() : ResponseInterface
- Render the edit file content form using FormEngine.
- addDocHeaderButtons() : void
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : LanguageService
Properties
$dataColumnTca
        protected
            array<string|int, mixed>
    $dataColumnTca
     = ['label' => '', 'config' => ['type' => 'text', 'cols' => 48, 'wrap' => 'off', 'enableTabulator' => true, 'fixedFont' => true]]
    
    
    
    
    
$eventDispatcher read-only
        protected
            EventDispatcherInterface
    $eventDispatcher
    
    
    
    
    
    
$formEngineData
        protected
            array<string|int, mixed>
    $formEngineData
     = ['databaseRow' => ['uid' => 0, 'data' => '', 'target' => 0, 'redirect' => ''], 'tableName' => 'editfile', 'processedTca' => ['columns' => ['data' => [], 'target' => ['config' => ['type' => 'input', 'renderType' => 'hidden']], 'redirect' => ['config' => ['type' => 'input', 'renderType' => 'hidden']]], 'types' => [1 => ['showitem' => 'data,target,redirect']]], 'recordTypeValue' => 1, 'inlineStructure' => [], 'renderType' => 'fullRecordContainer']
    
    
    
    
    
$iconFactory read-only
        protected
            IconFactory
    $iconFactory
    
    
    
    
    
    
$moduleTemplateFactory read-only
        protected
            ModuleTemplateFactory
    $moduleTemplateFactory
    
    
    
    
    
    
$nodeFactory read-only
        protected
            NodeFactory
    $nodeFactory
    
    
    
    
    
    
$resourceFactory read-only
        protected
            ResourceFactory
    $resourceFactory
    
    
    
    
    
    
$responseFactory read-only
        protected
            ResponseFactory
    $responseFactory
    
    
    
    
    
    
$streamFactory read-only
        protected
            StreamFactoryInterface
    $streamFactory
    
    
    
    
    
    
$uriBuilder read-only
        protected
            UriBuilder
    $uriBuilder
    
    
    
    
    
    
Methods
__construct()
    public
                    __construct(IconFactory $iconFactory, UriBuilder $uriBuilder, ResourceFactory $resourceFactory, ModuleTemplateFactory $moduleTemplateFactory, ResponseFactory $responseFactory, StreamFactoryInterface $streamFactory, EventDispatcherInterface $eventDispatcher, NodeFactory $nodeFactory) : mixed
    Parameters
- $iconFactory : IconFactory
- $uriBuilder : UriBuilder
- $resourceFactory : ResourceFactory
- $moduleTemplateFactory : ModuleTemplateFactory
- $responseFactory : ResponseFactory
- $streamFactory : StreamFactoryInterface
- $eventDispatcher : EventDispatcherInterface
- $nodeFactory : NodeFactory
mainAction()
Render the edit file content form using FormEngine.
    public
                    mainAction(ServerRequestInterface $request) : ResponseInterface
    Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceaddDocHeaderButtons()
    protected
                    addDocHeaderButtons(ModuleTemplate $view, string $returnUrl) : void
    Parameters
- $view : ModuleTemplate
- $returnUrl : string
getBackendUser()
    protected
                    getBackendUser() : BackendUserAuthentication
    Return values
BackendUserAuthenticationgetLanguageService()
    protected
                    getLanguageService() : LanguageService