Breaking: #107712 - New method hasSubmoduleOverview() in ModuleInterface
See forge#107712
Description
The
\TYPO3\ has been extended with a
new method
has to support the new card-based
submodule overview feature introduced in Feature: #107712 - Introduce card-based sub module overview.
Impact
All custom implementations of
\TYPO3\
must now implement the new
has method.
Existing implementations that do not implement this method will fail with a fatal PHP error.
Affected installations
TYPO3 installations with custom PHP code that directly implements the
Module. This is uncommon, as most modules use the provided
\TYPO3\ class or extend from
\TYPO3\.
Migration
Add the
has method to your custom
Module implementation.
The method should typically return the value from the module's configuration rather than a static boolean value:
public function hasSubmoduleOverview(): bool
{
// Return the configured value, defaulting to false
return $this->configuration['showSubmoduleOverview'] ?? false;
}
This allows the behavior to be controlled through the module configuration.