NewMultiplePagesController

readonly class \TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController

"Create multiple pages" controller

Attributes

#[AsController]

Table of Contents

Properties

$componentFactory  : ComponentFactory
$formDataCompiler  : FormDataCompiler
$moduleTemplateFactory  : ModuleTemplateFactory
$tcaSchemaFactory  : TcaSchemaFactory
$uriBuilder  : UriBuilder

Methods

__construct()  : mixed
mainAction()  : ResponseInterface
Main function Handling input variables and rendering main view.
createPages()  : bool
Persist new pages in DB
filterTypesThatOnlyRequireTitle()  : array
getBackendUser()  : BackendUserAuthentication
getLanguageService()  : LanguageService
getSubPagesOfPage()  : array
Get a list of sub pages with some all fields from given page.
getTypeSelectData()  : array
Page selector type data

Properties

Methods

mainAction()

Main function Handling input variables and rendering main view.

public mainAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

createPages()

Persist new pages in DB

protected createPages(array $newPagesData, int $pageUid, bool $afterExisting, bool $hidePages, bool $hidePagesInMenu) : bool

Parameters

$newPagesData : array

Data array with title and page type

$pageUid : int

Uid of page new pages should be added in

$afterExisting : bool

True if new pages should be created after existing pages

$hidePages : bool

True if new pages should be set to hidden

$hidePagesInMenu : bool

True if new pages should be set to hidden in menu

Return values

bool —

TRUE if at least on pages has been added

filterTypesThatOnlyRequireTitle()

protected filterTypesThatOnlyRequireTitle(array $selectData, array &$filteredTypes) : array

Parameters

$selectData : array
$filteredTypes : array

Return values

array

getSubPagesOfPage()

Get a list of sub pages with some all fields from given page.

protected getSubPagesOfPage(int $pageUid) : array

Fetch all data fields for full page icon display

Parameters

$pageUid : int

Get sub pages from this pages

Return values

array

getTypeSelectData()

Page selector type data

protected getTypeSelectData(int $pageUid, ServerRequestInterface $request) : array

Parameters

$pageUid : int
$request : ServerRequestInterface

Return values

array
On this page