Problem/Motivation
Hook requirements uses phase right now to manage whether it is runtime, install, or update.
This leads to significant complexity. As it stands runtime and update can easily be an OOP hook.
Let's create a new hook_requirements_check to combine update and runtime.
We will also create a hook_requirements_check_alter.
Steps to reproduce
N/A
Proposed resolution
Create hook_requirements_check
Create hook_requirements_check_alter
Invoke hook_requirements_check after hook_requirements during runtime and update.
Merge results
Run hook_requirements_check_alter after hook_requirements_alter during runtime and update.
Remaining tasks
N/A
User interface changes
N/A
Introduced terminology
hook_requirements_check
hook_requirements_check_alter
API changes
hook_requirements_check
hook_requirements_check
Can be implemented to provide or alter requirements on status report.
Can be implemented to provide or alter requirements before updating.