BeforeSearchInDatabaseRecordProviderEvent

final class \TYPO3\CMS\Backend\Search\Event\BeforeSearchInDatabaseRecordProviderEvent

PSR-14 event to modify the incoming input about which tables should be searched for within the live search results. This allows adding additional DB tables to be excluded / ignored, to further limit the search result on certain page IDs or to modify the search query altogether.

Table of Contents

Methods

__construct()  : mixed
getIgnoredTables()  : string[]
getSearchDemand()  : SearchDemand
getSearchPageIds()  : array
ignoreTable()  : void
isTableIgnored()  : bool
setIgnoredTables()  : void
setSearchDemand()  : void
setSearchPageIds()  : void

Methods

getIgnoredTables()

public getIgnoredTables() : string[]

Return values

string[]

getSearchPageIds()

public getSearchPageIds() : array

Return values

array

ignoreTable()

public ignoreTable(string $table) : void

Parameters

$table : string

isTableIgnored()

public isTableIgnored(string $table) : bool

Parameters

$table : string

Return values

bool

setIgnoredTables()

public setIgnoredTables(array $tables) : void

Parameters

$tables : array

setSearchPageIds()

public setSearchPageIds(array $searchPageIds) : void

Parameters

$searchPageIds : array
On this page