NewContentElementController

class \TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController

Script Class for the New Content element wizard

Table of Contents

Properties

$colPos  : int|null
If set, the content is destined for a specific column.
$iconFactory  : IconFactory
$id  : int
Page id
$moduleTemplateFactory  : ModuleTemplateFactory
$pageInfo  : array
$pageRenderer  : PageRenderer
$R_URI  : string
Return URL.
$sys_language  : int
Sys language
$uid_pid  : int
$uriBuilder  : UriBuilder
$view  : StandaloneView

Methods

__construct()  : mixed
getColPos()  : int|null
Provide information about the column position of the button that triggered the wizard
getPageInfo()  : array
Provide information about the current page making use of the wizard
getSysLanguage()  : int
Provide information about the language used while triggering the wizard
getUidPid()  : int
Provide information about the element to position the new element after (uid) or into (pid)
handleRequest()  : ResponseInterface
Process incoming request and dispatch to the requested action
positionMapAction()  : ResponseInterface
Renders the position map
wizardAction()  : ResponseInterface
Renders the wizard
getAppendWizards()  : array
getBackendUser()  : BackendUserAuthentication
getFluidTemplateObject()  : StandaloneView
getLanguageService()  : LanguageService
getWizardGroupHeader()  : array
getWizardItem()  : array
getWizards()  : array
Returns the array of elements in the wizard display.
prepareDependencyOrdering()  : mixed
Prepare a wizard tab configuration for sorting.
preparePositionMap()  : void
Creating the position map, necessary in case the position of the element has to be defined
prepareWizardContent()  : void
Creating the module output.
removeInvalidWizardItems()  : void
Checks the array for elements which might contain unallowed 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.

Properties

$colPos

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

protected int|null $colPos

$R_URI

Return URL.

protected string $R_URI = ''

$sys_language

Sys language

protected int $sys_language = 0

Methods

getColPos()

Provide information about the column position of the button that triggered the wizard

public getColPos() : int|null

Return values

int|null

getPageInfo()

Provide information about the current page making use of the wizard

public getPageInfo() : array

Return values

array

getSysLanguage()

Provide information about the language used while triggering the wizard

public getSysLanguage() : int

Return values

int

getUidPid()

Provide information about the element to position the new element after (uid) or into (pid)

public getUidPid() : int

Return values

int

handleRequest()

Process incoming request and dispatch to the requested action

public handleRequest(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

positionMapAction()

Renders the position map

public positionMapAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

wizardAction()

Renders the wizard

public wizardAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

getAppendWizards()

protected getAppendWizards(array $wizardElements) : array

Parameters

$wizardElements : array

Return values

array

getWizardGroupHeader()

protected getWizardGroupHeader(array $wizardGroup) : array

Parameters

$wizardGroup : 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

prepareDependencyOrdering()

Prepare a wizard tab configuration for sorting.

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

Parameters

$wizardGroup : array

TypoScript wizard tab configuration

$key : string

Which array key should be prepared

preparePositionMap()

Creating the position map, necessary in case the position of the element has to be defined

protected preparePositionMap(ServerRequestInterface $request) : void

Parameters

$request : ServerRequestInterface

prepareWizardContent()

Creating the module output.

protected prepareWizardContent(ServerRequestInterface $request) : void

Parameters

$request : ServerRequestInterface

Tags

throws
UnexpectedValueException

removeInvalidWizardItems()

Checks the array for elements which might contain unallowed 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) : void

The values will be added to the "params" key of the array (which should probably be unset or empty by default).

Parameters

$wizardItems : array

Wizard items, passed by reference

On this page