NewContentElementController
New Content element wizard. This is the modal that pops up when clicking "+content" in page module, which will trigger wizardAction() since there is a colPos given. Method positionMapAction() is triggered for instance from the list module "+content" on tt_content table header, and from list module doc-header "+" and then "Click here for wizard".
This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.
Attributes
- #[AsController]
Table of Contents
Properties
- $backendViewFactory : BackendViewFactory
- $colPos : int|null
- If set, the content is destined for a specific column.
- $dependencyOrderingService : DependencyOrderingService
- $eventDispatcher : EventDispatcherInterface
- $id : int
- $pageInfo : array<string|int, mixed>
- $returnUrl : string
- $sys_language : int
- $uid_pid : int
- $uriBuilder : UriBuilder
Methods
- __construct() : mixed
- handleRequest() : ResponseInterface
- Process incoming request and dispatch to the requested action
- getAppendWizards() : array<string|int, mixed>
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : LanguageService
- getWizardItem() : array<string|int, mixed>
- getWizards() : array<string|int, mixed>
- Returns the array of elements in the wizard display.
- positionMapAction() : ResponseInterface
- Renders the position map
- prepareDependencyOrdering() : array<string|int, mixed>
- Prepare a wizard tab configuration for sorting.
- removeInvalidWizardItems() : array<string|int, mixed>
- Checks the array for elements which might contain invalid default values and will unset them! Looks for the "tt_content_defValues" key in each element and if found it will traverse that array as fieldname / value pairs and check.
- wizardAction() : ResponseInterface
- Renders the wizard
Properties
$backendViewFactory read-only
protected
BackendViewFactory
$backendViewFactory
$colPos
If set, the content is destined for a specific column.
protected
int|null
$colPos
= null
$dependencyOrderingService read-only
protected
DependencyOrderingService
$dependencyOrderingService
$eventDispatcher read-only
protected
EventDispatcherInterface
$eventDispatcher
$id
protected
int
$id
= 0
$pageInfo
protected
array<string|int, mixed>
$pageInfo
= []
$returnUrl
protected
string
$returnUrl
= ''
$sys_language
protected
int
$sys_language
= 0
$uid_pid
protected
int
$uid_pid
= 0
$uriBuilder read-only
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(UriBuilder $uriBuilder, BackendViewFactory $backendViewFactory, EventDispatcherInterface $eventDispatcher, DependencyOrderingService $dependencyOrderingService) : mixed
Parameters
- $uriBuilder : UriBuilder
- $backendViewFactory : BackendViewFactory
- $eventDispatcher : EventDispatcherInterface
- $dependencyOrderingService : DependencyOrderingService
handleRequest()
Process incoming request and dispatch to the requested action
public
handleRequest(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacegetAppendWizards()
protected
getAppendWizards(array<string|int, mixed> $wizardElements) : array<string|int, mixed>
Parameters
- $wizardElements : array<string|int, mixed>
Return values
array<string|int, mixed>getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetWizardItem()
protected
getWizardItem(array<string|int, mixed> $itemConf) : array<string|int, mixed>
Parameters
- $itemConf : array<string|int, mixed>
Return values
array<string|int, mixed>getWizards()
Returns the array of elements in the wizard display.
protected
getWizards() : array<string|int, mixed>
For the plugin section there is support for adding elements there from a global variable.
Return values
array<string|int, mixed>positionMapAction()
Renders the position map
protected
positionMapAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceprepareDependencyOrdering()
Prepare a wizard tab configuration for sorting.
protected
prepareDependencyOrdering(array<string|int, mixed> $wizardGroup, string $key) : array<string|int, mixed>
Parameters
- $wizardGroup : array<string|int, mixed>
- $key : string
Return values
array<string|int, mixed>removeInvalidWizardItems()
Checks the array for elements which might contain invalid default values and will unset them! Looks for the "tt_content_defValues" key in each element and if found it will traverse that array as fieldname / value pairs and check.
protected
removeInvalidWizardItems(array<string|int, mixed> $wizardItems) : array<string|int, mixed>
Parameters
- $wizardItems : array<string|int, mixed>
Return values
array<string|int, mixed>wizardAction()
Renders the wizard
protected
wizardAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface