Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The hook_requirements() checks if the class can be found.
We recently had an API key invalidated and there was no error in the requirements report.
It required the forms to be submitted to discover that the API didn't work.
Proposed resolution
Try to connect in the hook_requirements() and report success or failure.
Thus, we have a standardised check point and tools like Monitoring can check for stable operations.
Comments
Comment #2
miro_dietikerPushing this as i see replies in all other issues except this.
Once we have feedback from the maintainers, we can start implement this.
Comment #3
samuel.mortensonI'd love to see this feature @miro_dietiker!