[Regression] Changes for compatibility with Drupal 12 broke compatibility with 10.6 and 11.0
# Motivation The changes from ce40ab99 broke compatibility with 10.6, 11.0 and maybe also 11.2 (not sure), but 2.2.4 still declares compatibility with these versions. ## Analysis Problems I found so far: - `hook_theme` is implemented in `ThemeHooks`, but in the `.module` file, the call goes to `AggregatorHooks` and `ThemeHooks` has no BC declaration in `services.yml` - Entity definitions switched to Drupal\Core\Entity\Attribute\ContentEntityType , but that attribute has only been introduced in 11.1.0 (see https://www.drupal.org/node/3505422 ). # Error messages Some error messages after updating from 2.2.3 to 2.2.4: ```txt Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "Drupal\aggregator\Hook\AggregatorHooks". in Drupal\Component\DependencyInjection\Container->get() (line 159 of core/lib/Drupal/Component/DependencyInjection/Container.php). Drupal::service() (Line: 31) aggregator_theme() (Line: 507) ``` ```txt Error: Call to undefined method Drupal\aggregator\Hook\AggregatorHooks::theme() in aggregator_theme() (line 31 of modules/contrib/aggregator/aggregator.module). ``` ```txt Drupal\Component\Plugin\Exception\PluginNotFoundException: The "aggregator_feed" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 142 of core/lib/Drupal/Core/Entity/EntityTypeManager.php). Drupal\aggregator\Hook\AggregatorHooks->entityExtraFieldInfo() (Line: 47) ```
issue