Feature: #76209 - Hook to register custom result browsers in AbstractPlugin¶
See forge#76209
Description¶
The hook $GLOBALS
allows
registering custom result browser implementations. This approach allows to override the default implementation of
Abstract
for either all extensions or only for specific ones.
Impact¶
The hook may be registered in ext_
:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Frontend\Plugin\AbstractPlugin::class]['pi_list_browseresults'][1463475262] = \Vendor\ExtensionKey\Hook\ResultBrowserHook::class
Copied!
The registered class must implement the method pi_
with the following arguments:
- int
$show
Determines how the results of the page browser will be shownResult Count - string
$table
Attributes for the table tag which is wrapped around the table cells containing the browse linksParams - array
$wrap
Array with elements to overwrite the default $wrapper-arrayArr - string
$pointer
Variable name for the pointerName - bool
$hsc
Enable htmlspecialchars() for the pi_getLL functionText - bool
$force
Forces the output of the page browser if you set this option toOutput true
- object
$p
The AbstractPlugin instance calling the hookObj