Breaking: #107712 - New method hasSubmoduleOverview() in ModuleInterface 

See forge#107712

Description 

The \TYPO3\CMS\Backend\Module\ModuleInterface has been extended with a new method hasSubmoduleOverview() 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\CMS\Backend\Module\ModuleInterface must now implement the new hasSubmoduleOverview(): bool 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 ModuleInterface. This is uncommon, as most modules use the provided \TYPO3\CMS\Backend\Module\Module class or extend from \TYPO3\CMS\Backend\Module\BaseModule .

Migration 

Add the hasSubmoduleOverview() method to your custom ModuleInterface 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;
}
Copied!

This allows the behavior to be controlled through the module configuration.