SearchRepository

FinalYes

Repository class to ease using the search API.

Internal

Table of Contents

Properties

$eventDispatcher  : EventDispatcherInterface
$searchProviderRegistry  : SearchProviderRegistry

Methods

__construct()  : mixed
find()  : ArrayPaginator
getSearchProviderState()  : array<class-string, SearchProviderInterface, isActive: bool}>
Returns a list of available search providers including a flag whether they are currently active.
getViableSearchProviders()  : array<string|int, SearchProviderInterface>

Properties

$eventDispatcher read-only

protected EventDispatcherInterface $eventDispatcher

Methods

getSearchProviderState()

Returns a list of available search providers including a flag whether they are currently active.

public getSearchProviderState(SearchDemand $searchDemand) : array<class-string, SearchProviderInterface, isActive: bool}>
Parameters
$searchDemand : SearchDemand
Return values
array<class-string, SearchProviderInterface, isActive: bool}>

        
On this page

Search results