EXTBASEPLUGIN¶
New in version 12.3.
The content object EXTBASEPLUGIN
allows to register Extbase
plugins.
Properties¶
extensionName¶
- extensionName¶
- Data type
string
The extension name.
pluginName¶
- pluginName¶
- Data type
string
The plugin name.
Example¶
EXT:my_extension/Configuration/TypoScript/setup.typoscript¶
page.10 = EXTBASEPLUGIN
page.10.extensionName = MyExtension
page.10.pluginName = MyPlugin
History¶
The EXTBASEPLUGIN
allows Extbase authors to not reference the
Extbase Bootstrap class anymore, like for previous TYPO3 versions below version
12.
Previously, TypoScript code for Extbase plugins looked like this:
page.10 = USER
page.10 {
userFunc = TYPO3\\CMS\\Extbase\\Core\\Bootstrap->run
extensionName = MyExtension
pluginName = MyPlugin
}
This way still works, but it is recommended to use the
EXTBASEPLUGIN
content object, as the direct reference to a PHP
class (Bootstrap) might be optimized in future versions.
For extension that need to remain compatible with TYPO3 v11 and v12 use, the Bootstrap way should be used.