Feature: #97135 - New Registration for module functions
See forge#97135
Description
Previously, module functions could be added to modules such as
Web > Info or Web > Template via the
now removed global TBE_
array.
Since those functions are actually additional - "third-level" - modules,
they are now registered as such via the
new Module Registration API,
in an extension's Configuration/
file.
Next to the additional configuration options, e.g. for defining the position, this also allows administrators to define access permissions via the module access logic for those modules individually.
Additionally, the corresponding backend controller classes are now able to make use of the new ModuleData API.
Example
Registration of an additional - "third-level" - module for
Web > Template in the Configuration/
file of an extension:
'web_ts_customts' => [
'parent' => 'web_ts',
'access' => 'user',
'path' => '/module/web/typoscript/custom-ts',
'iconIdentifier' => 'module-custom-ts',
'labels' => [
'title' => 'LLL:EXT:extkey/Resources/Private/Language/locallang.xlf:mod_title',
],
'routes' => [
'_default' => [
'target' => CustomTsController::class . '::handleRequest',
],
],
'moduleData' => [
'someOption' => false,
],
],
Impact
Additional - "third-level" - modules are now registered in the
extension's Configuration/
file, the
same way as main and submodules. This therefore allows those
modules to benefit from the same functionality.