NullContextBreadcrumbProvider implements BreadcrumbProviderInterface
Breadcrumb provider for null contexts (virtual pages, empty states).
Provides fallback breadcrumbs when no record or resource context is available, such as virtual pages (e.g., id=0) or file storage roots.
This class is not part of TYPO3's public API.
Table of Contents
Interfaces
- BreadcrumbProviderInterface
- Interface for breadcrumb providers that can generate breadcrumb trails for different types of contexts (records, resources, etc.).
Methods
- __construct() : mixed
- generate() : array<string|int, BreadcrumbNode>
- Generates breadcrumb nodes for the given context.
- getPriority() : int
- Returns the priority of this provider.
- supports() : bool
- Determines whether this provider can handle the given context.
Methods
__construct()
    public
                    __construct(ModuleResolver $moduleResolver, StorageRepository $storageRepository) : mixed
    Parameters
- $moduleResolver : ModuleResolver
- $storageRepository : StorageRepository
generate()
Generates breadcrumb nodes for the given context.
    public
                    generate(BreadcrumbContext|null $context, ServerRequestInterface|null $request) : array<string|int, BreadcrumbNode>
    Parameters
- $context : BreadcrumbContext|null
- 
                    The breadcrumb context (can be null for virtual pages) 
- $request : ServerRequestInterface|null
- 
                    The current request for module detection 
Return values
array<string|int, BreadcrumbNode> —Array of breadcrumb nodes ordered from root to current
getPriority()
Returns the priority of this provider.
    public
                    getPriority() : int
    Higher priority providers are checked first. Use this to override default providers or to establish a specific order.
Return values
int —Priority (higher = checked first)
supports()
Determines whether this provider can handle the given context.
    public
                    supports(BreadcrumbContext|null $context) : bool
    Parameters
- $context : BreadcrumbContext|null
- 
                    The breadcrumb context (can be null for virtual pages)