Feature: #76209 - Hook to register custom result browsers in AbstractPlugin¶
See forge#76209
Description¶
The hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Frontend\Plugin\AbstractPlugin::class]['pi_list_browseresults']
allows
registering custom result browser implementations. This approach allows to override the default implementation of
AbstractPlugin::pi_list_browseresults()
for either all extensions or only for specific ones.
Impact¶
The hook may be registered in ext_localconf.php
:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Frontend\Plugin\AbstractPlugin::class]['pi_list_browseresults'][1463475262] = \Vendor\ExtensionKey\Hook\ResultBrowserHook::class
The registered class must implement the method pi_list_browseresults()
with the following arguments:
int
$showResultCount
Determines how the results of the page browser will be shownstring
$tableParams
Attributes for the table tag which is wrapped around the table cells containing the browse linksarray
$wrapArr
Array with elements to overwrite the default $wrapper-arraystring
$pointerName
Variable name for the pointerbool
$hscText
Enable htmlspecialchars() for the pi_getLL functionbool
$forceOutput
Forces the output of the page browser if you set this option totrue
object
$pObj
The AbstractPlugin instance calling the hook