Path 'admin/config/workflow/eca/add' throws fatal error
Problem/Motivation
On Drupal 9.2 installation, The path admin/config/workflow/eca/add throws below error:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "extension.path.resolver". in Drupal\Component\DependencyInjection\Container->get() (line 156 of core/lib/Drupal/Component/DependencyInjection/Container.php).
The problem is that the service extension.path.resolver was introduced from Drupal 9.3.x onwards, See change record - https://www.drupal.org/node/2940438.
Steps to reproduce
- Enable ECA module
- Enable ECA content module
- Enable ECA UI module
- Go to admin/config/workflow/eca
- Click the link 'Add new model'
- You should now see the fatal error.
Proposed resolution
We could choose to do one of the below:
- The module is currently installable with any version of Drupal 9(
core_version_requirement: ^9 || ^10). We could change the requirement to ^9.3 || ^10 - OR, We could have a fallback code to support older versions of Drupal 9. (This doesn't make sense as chances are slim that people who are Drupal version < 9.3 are using this module because of fatal errors)
Remaining tasks
User interface changes
API changes
Data model changes
Edited by drupalbot