NewContentElementController

class \TYPO3\CMS\Backend\Controller\ContentElement\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".

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
$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
getBackendUser()  : BackendUserAuthentication
getLanguageService()  : LanguageService
getWizardItem()  : array
getWizards()  : array
Returns the array of elements in the wizard display.
positionMapAction()  : ResponseInterface
Renders the position map
prepareDependencyOrdering()  : array
Prepare a wizard tab configuration for sorting.
removeInvalidWizardItems()  : array
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

$colPos

If set, the content is destined for a specific column.

protected int|null $colPos = null

$eventDispatcher read-only

protected EventDispatcherInterface $eventDispatcher

$returnUrl

protected string $returnUrl = ''

$sys_language

protected int $sys_language = 0

Methods

handleRequest()

Process incoming request and dispatch to the requested action

public handleRequest(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

getAppendWizards()

protected getAppendWizards(array $wizardElements) : array

Parameters

$wizardElements : array

Return values

array

getWizardItem()

protected getWizardItem(array $itemConf) : array

Parameters

$itemConf : array

Return values

array

getWizards()

Returns the array of elements in the wizard display.

protected getWizards() : array

For the plugin section there is support for adding elements there from a global variable.

Return values

array

positionMapAction()

Renders the position map

protected positionMapAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

prepareDependencyOrdering()

Prepare a wizard tab configuration for sorting.

protected prepareDependencyOrdering(array $wizardGroup, string $key) : array

Parameters

$wizardGroup : array
$key : string

Return values

array

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 $wizardItems) : array

Parameters

$wizardItems : array

Return values

array

wizardAction()

Renders the wizard

protected wizardAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface
On this page