‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent Class Reference

Public Member Functions

 __construct (private array $wizardItems, private readonly array $pageInfo, private readonly int|null $colPos, private readonly int $sys_language, private readonly int $uid_pid,)
 
 getWizardItems ()
 
 setWizardItems (array $wizardItems)
 
 hasWizardItem (string $identifier)
 
 getWizardItem (string $identifier)
 
 setWizardItem (string $identifier, array $configuration, array $position=[])
 
 removeWizardItem (string $identifier)
 
 getPageInfo ()
 
 getColPos ()
 
 getSysLanguage ()
 
 getUidPid ()
 

Detailed Description

Listeners to this Event will be able to modify the wizard items of the new content element wizard component

Definition at line 23 of file ModifyNewContentElementWizardItemsEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent::__construct ( private array  $wizardItems,
private readonly array  $pageInfo,
private readonly int|null  $colPos,
private readonly int  $sys_language,
private readonly int  $uid_pid 
)

Definition at line 25 of file ModifyNewContentElementWizardItemsEvent.php.

Member Function Documentation

◆ getColPos()

TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent::getColPos ( )

Provides information about the column position of the button that triggered the wizard.

Definition at line 111 of file ModifyNewContentElementWizardItemsEvent.php.

◆ getPageInfo()

TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent::getPageInfo ( )

Provides information about the current page making use of the wizard.

Definition at line 103 of file ModifyNewContentElementWizardItemsEvent.php.

◆ getSysLanguage()

TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent::getSysLanguage ( )

Provides information about the language used while triggering the wizard.

Definition at line 119 of file ModifyNewContentElementWizardItemsEvent.php.

◆ getUidPid()

TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent::getUidPid ( )

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

Definition at line 127 of file ModifyNewContentElementWizardItemsEvent.php.

◆ getWizardItem()

TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent::getWizardItem ( string  $identifier)

◆ getWizardItems()

TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent::getWizardItems ( )

Definition at line 33 of file ModifyNewContentElementWizardItemsEvent.php.

◆ hasWizardItem()

TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent::hasWizardItem ( string  $identifier)

◆ removeWizardItem()

TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent::removeWizardItem ( string  $identifier)

◆ setWizardItem()

TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent::setWizardItem ( string  $identifier,
array  $configuration,
array  $position = [] 
)

Add a new wizard item with configuration at a defined position. Can also be used to relocate existing items and to modify their configuration.

Definition at line 57 of file ModifyNewContentElementWizardItemsEvent.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ setWizardItems()

TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent::setWizardItems ( array  $wizardItems)

Definition at line 38 of file ModifyNewContentElementWizardItemsEvent.php.