‪TYPO3CMS  ‪main
TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent Class Reference

Public Member Functions

 __construct (private Demand $demand, private array $redirects, private array $hosts, private array $statusCodes, private array $creationTypes, private bool $showHitCounter, private ViewInterface $view, private readonly ServerRequestInterface $request, private array $integrityStatusCodes,)
 
 getDemand ()
 
 setDemand (Demand $demand)
 
 getRedirects ()
 
 setRedirects (array $redirects)
 
 getRequest ()
 
 getHosts ()
 
 setHosts (array $hosts)
 
 getStatusCodes ()
 
 setStatusCodes (array $statusCodes)
 
 getCreationTypes ()
 
 setCreationTypes (array $creationTypes)
 
 getShowHitCounter ()
 
 setShowHitCounter (bool $showHitCounter)
 
 getView ()
 
 setView (ViewInterface $view)
 
 getIntegrityStatusCodes ()
 
 setIntegrityStatusCodes (array $integrityStatusCodes)
 

Detailed Description

This event is fired in the \TYPO3\CMS\Redirects\Controller\ManagementController handleRequest() method.

It can be used to further enrich view data for the management view.

Definition at line 30 of file ModifyRedirectManagementControllerViewDataEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::__construct ( private Demand  $demand,
private array  $redirects,
private array  $hosts,
private array  $statusCodes,
private array  $creationTypes,
private bool  $showHitCounter,
private ViewInterface  $view,
private readonly ServerRequestInterface  $request,
private array  $integrityStatusCodes 
)

Member Function Documentation

◆ getCreationTypes()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::getCreationTypes ( )

Returns creation types for the filter select box.

Definition at line 119 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ getDemand()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::getDemand ( )

Return the demand object used to retrieve the redirects.

Definition at line 47 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ getHosts()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::getHosts ( )

Returns the hosts to be used for the host filter select box.

Definition at line 87 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ getIntegrityStatusCodes()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::getIntegrityStatusCodes ( )

Returns all integrity status codes.

Definition at line 167 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ getRedirects()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::getRedirects ( )

Return the retrieved redirects.

Definition at line 63 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ getRequest()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::getRequest ( )

Return the current PSR-7 request.

Definition at line 79 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ getShowHitCounter()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::getShowHitCounter ( )

Returns, if hit counter should be displayed.

Definition at line 135 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ getStatusCodes()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::getStatusCodes ( )

Returns the status codes for the filter select box.

Definition at line 103 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ getView()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::getView ( )

Returns the current view object, without controller data assigned yet.

Definition at line 151 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ setCreationTypes()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::setCreationTypes ( array  $creationTypes)

Can be used to update which creation types are available in the filter select box.

Definition at line 127 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ setDemand()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::setDemand ( Demand  $demand)

Can be used to set the demand object.

Definition at line 55 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ setHosts()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::setHosts ( array  $hosts)

◆ setIntegrityStatusCodes()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::setIntegrityStatusCodes ( array  $integrityStatusCodes)

Allows to set integrity status codes. It can be used to filter for integrity status codes.

Definition at line 175 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ setRedirects()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::setRedirects ( array  $redirects)

Can be used to set the redirects, for example, after enriching redirect fields.

Definition at line 71 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ setShowHitCounter()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::setShowHitCounter ( bool  $showHitCounter)

Can be used to manage, if the hit counter should be displayed.

Definition at line 143 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ setStatusCodes()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::setStatusCodes ( array  $statusCodes)

Can be used to update which status codes are available in the filter select box.

Definition at line 111 of file ModifyRedirectManagementControllerViewDataEvent.php.

◆ setView()

TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent::setView ( ViewInterface  $view)

Can be used to assign additional data to the view.

Definition at line 159 of file ModifyRedirectManagementControllerViewDataEvent.php.