AfterFilemountsListIsAssembledEvent 

New in version 14.0

The PSR-14 event \TYPO3\CMS\Backend\Controller\Event\AfterFilemountsListIsAssembledEvent is dispatched when the file mounts list is fetched to be displayed in the backend module. It makes it possible to modify this list.

Example: Remove the last file mount from the list 

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);
  }
}
Copied!

API 

final class AfterFilemountsListIsAssembledEvent
Fully qualified name
\TYPO3\CMS\Beuser\Event\AfterFilemountsListIsAssembledEvent

Listeners are able to manipulating the list of file mounts shown in the backend module

public readonly request
public filemounts