Feature: #76209 - Hook to register custom result browsers in AbstractPlugin¶
See Issue #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
$showResultCountDetermines how the results of the page browser will be shown - string
$tableParamsAttributes for the table tag which is wrapped around the table cells containing the browse links - array
$wrapArrArray with elements to overwrite the default $wrapper-array - string
$pointerNameVariable name for the pointer - bool
$hscTextEnable htmlspecialchars() for the pi_getLL function - bool
$forceOutputForces the output of the page browser if you set this option totrue - object
$pObjThe AbstractPlugin instance calling the hook