ElementBrowserController

Script class for the Element Browser window.

Internal

This class is a specific Backend controller implementation and is not part of the TYPO3's Core API.

Table of Contents

Properties

$mode  : string
The mode determines the main kind of output of the element browser.

Methods

mainAction()  : ResponseInterface
Injects the request object for the current request or sub-request As this controller goes only through the main() method, it is rather simple for now
getBackendUser()  : BackendUserAuthentication
getElementBrowserInstance()  : ElementBrowserInterface
Get instance of the actual element browser
getLanguageService()  : LanguageService
main()  : string
Main function, detecting the current mode of the element browser and branching out to internal methods.

Properties

$mode

The mode determines the main kind of output of the element browser.

protected string $mode = ''

There are these options for values:

  • "db" will allow you to browse for pages or records in the page tree for FormEngine select fields
  • "file" will allow you to browse for files in the folder mounts for FormEngine file selections
  • "folder" will allow you to browse for folders in the folder mounts for FormEngine folder selections
  • Other options may be registered via extensions

Methods

mainAction()

Injects the request object for the current request or sub-request As this controller goes only through the main() method, it is rather simple for now

public mainAction(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface

the current request

Return values
ResponseInterface

the response with the content

main()

Main function, detecting the current mode of the element browser and branching out to internal methods.

protected main(ServerRequestInterface $request) : string
Parameters
$request : ServerRequestInterface
Return values
string

HTML content


        
On this page

Search results