SearchRepository

final readonly class \TYPO3\CMS\Backend\Search\LiveSearch\SearchRepository

Repository class to ease using the search API.

Table of Contents

Methods

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

Methods

getSearchProviderState()

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

public getSearchProviderState(SearchDemand $searchDemand) : array<class-string, array{instance: SearchProviderInterface, isActive: bool}>

Parameters

$searchDemand : SearchDemand

Return values

array<class-string, array{instance: SearchProviderInterface, isActive: bool}>
On this page