Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295290

Create hook_requirements_check

$
0
0

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.

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 295290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>