AfterFilemountsListIsAssembledEvent
New in version 14.0
The PSR-14 event
\TYPO3\
is dispatched when the file mounts list is fetched to be displayed
in the backend module. It makes it possible to modify this list.
Note
This is a sensitive area in terms of security. Please ensure that you are not introducing any breach of security when using this event, for example, by revealing restricted information.
Example
EXT:my_extension/Classes/Backend/EventListener/MyEventListener.php
<?php
declare(strict_types=1);
namespace MyVendor\MyExtension\Backend\EventListener;
use TYPO3\CMS\Beuser\Event\AfterFilemountsListIsAssembledEvent;
use TYPO3\CMS\Core\Attribute\AsEventListener;
final readonly class MyEventListener
{
#[AsEventListener]
public function __invoke(AfterFilemountsListIsAssembledEvent $event): void
{
array_pop($event->filemounts);
}
}
API
- class AfterFilemountsListIsAssembledEvent
-
- Fully qualified name
-
\TYPO3\
CMS\ Beuser\ Event\ After Filemounts List Is Assembled Event
Event that is dispatched when the file mounts list is fetched to be displayed in the backend module.
Listeners can modify the file mounts list.
- param $request
-
The current Extbase request object
- param $filemounts
-
An array of file mounts.