FileProvider implements SearchProviderInterface
FinalYes
Search provider to query files (sys_file + sys_file_metadata) for the backend live search. Results respect the user's file mounts and are deduplicated per file.
Table of Contents
Interfaces
- SearchProviderInterface
- Interface to declare a search provider used for the backend search
Methods
- __construct() : mixed
- count() : int
- find() : array<string|int, ResultItem>
- getFilterLabel() : string
Methods
__construct()
public
__construct(IconFactory $iconFactory, UriBuilder $uriBuilder, ResourceFactory $resourceFactory, LanguageServiceFactory $languageServiceFactory) : mixed
Parameters
- $iconFactory : IconFactory
- $uriBuilder : UriBuilder
- $resourceFactory : ResourceFactory
- $languageServiceFactory : LanguageServiceFactory
count()
public
count(SearchDemand $searchDemand) : int
Parameters
- $searchDemand : SearchDemand
Return values
intfind()
public
find(SearchDemand $searchDemand) : array<string|int, ResultItem>
Parameters
- $searchDemand : SearchDemand
Return values
array<string|int, ResultItem>getFilterLabel()
public
getFilterLabel() : string